returning enumerable in getmoves in ai