Here is a pic of my problem while I'm debugging:

So in line 10, I check the tileLoc variable which is 0 as you can see at the bottom, but my code is skipping to line 16 instead of executing line 11-13. Am I having some sort of brain fart here and missing something simple?
Thanks in advance for any help.