Game logic update

Added the score on which the game ends as well as a function endGame().
Tweaked the settings menu