implemented state machine and moved alot of stuff out of world and ivmgr into bciService