End of game working serverside