undo method

PlayedMove undo()

Undoes and returns the last move played. This operation cannot be undone!

Implementation

PlayedMove undo() => moves.removeLast();