Thanks!
I got the HP bug worked out (I forgot the =0 on an if(something=0) so it was running in reverse
Now I'm working on the AI. It's using a simple scoring system for each direction, and taking the best. Using shelters to heal is above attack, which is above being able to move (which is random in score from 0 to 4 to avoid predictability). Proximity algorithms would be much slower, so I'll avoid them if I can. The AI is very simple, since it only has to return a single value from 0 to 4 each time it is called.
As of Right now, the AI appears to be functioning.
I think I won't add any other stuff, at least not for the contest entry version. I'll try to polish up the graphics, and I still need to do Code commenting for the submission.