Fix some bug and save the game when testing