added AI and made a turn based system