IdleAction - reorganize idle detection in class AI

New IdleAction with static methods, Moved stuff from AI to IdleAction