Now high Scores can be saved!

-   Pair<String,Integer> obj=(Pair<String, Integer>) in.readObject();
+   Pair<String,Integer> obj;

That was the major change.