Implemented saving score in file.