Grid follower robot. Need help...

What's with the smiley faces in the code? Why didn't you post the code correctly?

The code does something (if it even compiles. Missing ; make me doubt that). What does it do? How does that differ from what you want?