Simplified Zombie's act function by extracting named actions