Applied the logic of the game (not yet final)