int isLegal(move &m)


Checks to see if the given move is legal. Returns 0 if the move is legal and 1 if it is not legal.