Add "undo moves" feature.
Refactor game-related operations into a separate file.
Add steps tracking.