It stores the notes on a list, then for drawing the notes it checks if theres a note on the current columnn and draws it on it's positions based on what note it is, it uses the pen and just 1 object
This goes beyond my head.