Develop logic

Fixed generation logic;
Added multiple states for chasing AI;