Merge pull request #11 from samni698/legalMoves

Implemented the isMoveLegal method