Add state machine code to the creature