Wow, this turned out way better than I thought It would. Turns out pen is actually fun to play around with. Click the flag to erase all Press 1 to show variables and button, press 2 to hide them. Drag around to draw. Press eraser to erase, and when you're done press pen to draw again.
I think I'm getting better at coding :) Still might be a bit broken but It works