isGameEnding() in exports.move correctly assigns didWin and gameOver