Updating global variables inside draw() function

Thanks, I’ve posted it right now