lvl 7 is easy -- just think about what commands you're repating over and over and put them in a function. If you keep repeating after that, use the second one!
The right/left direction always confuses me, but maybe this is to show me how bugs are? :) Overall a pretty nice game. You need to click "replay" before you get the badge, BTW.