changed rook class to apply rules for moves