refactor bot ai, basic states work