Fix bug when AI stuck in an infinite loop
Use class MoveOption instead of an array