refactoring. adding OnGameFinishedListener