when i run this code, and food is something like -5, it seems to completely skip the if statement and move on to the next part of the function (i only have part of it below)

```
def change_location():
global food
global units
global SP
if food < 0: #problem seems to be here
        print '------------------------------------------------------'
        print 'not enougth food'
        main()

```

the concept is that if you have no food, you cant go to a new location. I wouldn't mind an alternative to this.