Used to optimize the game 2048