created new function to reset the game