Added code to public isPathClear in ChessPiece