Kiril's Shortened LegalMoveChecker
Minor Modifications and adding parts of FileIO file.