Wrote code for managing progress of the game.