factored behavior command logic out of executeBehavior

factored behavior command logic out of executeBehavior, made each into
their own method