fully debugged, draws rectangles and lines, no classes