fixed bug with AI returning undef move sometimes on lower difficulty