Fixed some heading bugs

- If heading == 0, was not triggering if statement. Changed this to
checking if heading isn't undefined.
- Moved combat heading into a loop section that will explicitly check
if the player is in combat