added scoring method and way to end the game