When the board a pop up prompts that the game has ended and gets the
winners name as well as save the score on the DB