testGameEnds now passes