Error corrected and delete method used for the end of game.