Trouble when programming brick pi

We’re students at José Rodrigo Botet highschool. We have Brick Pi for 3 or 4 years now and Raspberry Pi 2 , and the image 2017.10.05-RASPBIAN_FOR_ROBOTS_BY_DEXTER_INDUSTRIES.zip. We’re using scratch to programme it and if we use the “motor test”, the offiicial one, it works, but if we try it with a programme that we create it doesn’t work. We attach the program that we created and doesn’t work.

prueba.sb (45.8 KB)