Moved AI helper methods to util classes.
Added helper method for checking moves.
AI bug fixes.