"from left to right" should become "from top to bottom", because x=0 is left and y=0 is the top..
You've probably got some > and < wrong and some - and + because of that..
I'm not in the opportunity to download at this moment, but you might want to look if what I said is the case..