added new functionality to save only higher scores and some cleanup
added new functionality to save only higher scores