Invincibility temporarily

Added timed invincibility after damage is taken.  as well as a few
PlayerAI optimization tweaks.