Removed Checkstate. Added GetAllMoves function for use in the search algorithm. refactored search algo to use the new function.