I recommend stepping through this with a debugger, or at least adding some print statements, to figure out what's going on with your code. Hint: make sure you use {} after if statements and for loops!