Allow human players to stop the program by entering q as a move.