AI refactoring

Add fleeing, improve calc time by about 50%
Fix AI clause

Add items type
Split entities into living and unliving