Can you go back and edit your previous post to use code tags? Good practice. Makes it easier to read. Makes it more likely that forum members will be willing to help you. ![]()
Oh, and format your code.
Autoformat from the IDE menu or CTRL-T
I think you have some bad for loops.
(pos = 150; pos < 30; pos += 1)
If you start at 150 and go up, how long does it take to get less than 30?