Begun implementing proper game state changes (works, but not finished).