Minor changes on isObstructed function for Knight and Rook class