added preferences, and difficulty menu
added exit functionality