implemented end game and notifying players in game center