public void RotateRectangles(int width)
        {
            foreach (var rectangle in Rectangles)
            {
                if (rectangle.RightClicked)
                {
                    rectangle.Rotate(width);
                }
            }

            Rectangles.RemoveAll(rect => rect.RightClicked && rect.Disappeared);
        }
        public void MoveRectangles(int height)
        {
            foreach (var rectangle in Rectangles)
            {
                if (rectangle.LeftClicked)
                {
                    rectangle.Move(height);
                }
            }

            Rectangles.RemoveAll(rect => rect.LeftClicked && rect.Disappeared);
        }