Added endgame and button