finished refactoring

wrapped lengthy html injection in functions;
replaced hard-code multiple marker with a for-loop
dayum! draw_circle() is so pleasing to see! (line 106, 117-122)