Move highscore functionality into separate game method and allow basic posting of highscores to database through ajax