testing done for chess board and fixed error in check for legal moves