Fixed the infinite loops, however there is still a problem with the game piece counting.
Pieces now being counted correctly, however there is still a problem while selecting the move.
AI is finally at the very least somewhat functional.
Added a difficulty select.