cleans up drawDot method and draws background