i need help in this game

https://makecode.com/_ehvUW74utAc9 the only problem is that whenever i chose a material it stops and i duno how to fix it pls help