Moved hasGameEnded method to utilities.js