implemented checking rook moves