figured out square rotation finally