https://github.com/gabrielecirulli/2048/blob/master/js/game_manager.js#L45