private void squareButton_Click(object sender, RoutedEventArgs e) { if (square == null) { square = new Square(); square.CreatePhysicalShape(paperCanvas); } else { square.MoveRight(); } }