Fixed last-second bug preventing game from restarting properly.