implemented moveLikeRook