Broke out utility functions.

I think it's important to know if I am looking at a snake head. Combined that with items_in_range I can use that to lower reward levels for food close to another snake head.