Added a 'GameFinished' transition and moved the responsibility for checking the game is in progress to the 'makeMove' function