added the game's algorithm