define legal moves for a rook