fixed a bug that let the player click the restart button as many times as they wanted before disappearing