What do each of the variables in TRAP do? Try changing one variable at a time. Some LOGO programmes will allow you to "step through" the procedure so you can see what each instruction does.