I'm dumb, the drawing code was in the wrong place