changed GameBot to check for valid moves.