Functional AI, fixed the dots not appearing and rects being overlapped.