My game wont work

ive been codeing a game where it moves a block around and makes a trail of rainbow blocks and it wont create copys can someone help the link is CoSpaces Edu :: cool backround

i kind of fixed it but now it lags after a few seconds

like there is alot of lag

i fixed the game now