# I'm having problems with deleting, copying and doing other actions in this game I think its because of too many blocks

**URL:** https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775
**Category:** Help
**Tags:** game
**Created:** [August 5, 2022, 10:12pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775 "2022-08-05T22:12:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)
#### Post date: [August 5, 2022, 10:12pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775/1 "2022-08-05T22:12:37Z")

</div>

[https://makecode.com/\_hYrA8W2UK5Dk](https://makecode.com/_hYrA8W2UK5Dk) any help it just seems weird  
and I want to be able to finish my game

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [August 5, 2022, 10:22pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775/2 "2022-08-05T22:22:38Z")

</div>

This is the same bug as [Missing context-menu items: "Duplicate" and "Delete Block(s)"](https://forum.makecode.com/t/missing-context-menu-items-duplicate-and-delete-block-s/14729) – issue is tracked here: [https://github.com/microsoft/pxt-arcade/issues/4906](https://github.com/microsoft/pxt-arcade/issues/4906) . Sorry about that!

---

<div class="post-metadata">

### Author: ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)
#### Post date: [August 5, 2022, 10:58pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775/3 "2022-08-05T22:58:43Z")

</div>

Is it possible to fix?

---

<div class="post-metadata">

### Author: ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)
#### Post date: [August 5, 2022, 10:58pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775/4 "2022-08-05T22:58:44Z")

</div>

because my game took 10 plus hours to make

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [August 5, 2022, 10:59pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775/5 "2022-08-05T22:59:26Z")

</div>

Hm, I saw it’s too big to switch to javascript and back like I suggested in the other issue – I fetched it and manually fixed the block xml for now 🙂 here it is: [https://makecode.com/\_72hVbVR716X3](https://makecode.com/_72hVbVR716X3)

I have a few small suggestions that might improve your programming experience – right now you have a LOT of blocks in the program and so the editor is running a bit slower, and there are a few easy ways to make improvements – for example, you can swap out

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9b71c43c8685cb443e5bb18034d09dd6d3a3cfb7.png)  
for  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d2cd304b40c49b94c2478ff934019546379b0b6c.png)

and in places like this where you are setting a bunch of things in each if / else if / else branch  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/43d147b4a829903e4d9f865803a71001a3712052.png), you can pull out things that get repeated in front of the if: e.g.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a1ffc4f0dda9c7df164db4fe8596524da7701d8f.png)  
– that way you can probably cut \> half the blocks out of the program and it will run speedier / be easier for you to update.

(that said, we always hope to improve performance in the editor, so hopefully in the future we can handle with this many blocks a little bit better)

---

<div class="post-metadata">

### Author: ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)
#### Post date: [August 5, 2022, 11:05pm UTC](https://forum.makecode.com/t/im-having-problems-with-deleting-copying-and-doing-other-actions-in-this-game-i-think-its-because-of-too-many-blocks/14775/6 "2022-08-05T23:05:20Z")

</div>

THANK YOU! and i will be sure not to do that again (unless my brain shuts down) and I hope Microsoft fixes this soon
