When game ends, gameover.html should now be correctly opened