Added high score saving
Some refactoring