Modify api_controller and user model

I'm modify the User.rb in model to check the high score before updated to database.

And I'm modify api_controller.rb to collect the score only once per user.