Moved the creature Idle action logic to its own sub-function.

The creature logic simplification is done!! Phew!
Also all the gotos are gone now.