solidified the logic of the game