completed the game end functionality , refreshing  the score and reseting the gam details