Boss AI and Constants

Added a function in the state machine factory to create the Boss state
machine, and added constants to the top of the factory to make tweaking
values easier.