Some readability fixes.
Dysfunctional, dumb AI added. No dots made by AI and overwriting rects will be fixed next.