better terrain avoidance for AI so it doesn't hit itself; player hittest implemented, sort of