change boss spawn method and removed redundance codes