Use unique_ptr for current_music
Use RAIIdmem for gadgets
Make g3_check_and_draw_* inline