Properly implemented saving of high scores.

Moved the saving function from the battle screen to the end screen.