changed ScoreManager to use C style file IO, added unit tests for ScoreManager