Improvements to the isLegalSquare() method for Bishop, Pawn, and Queen.