Moving and rotating rectangles (I've got some idea)