finished AI... mostly