fixed the drawing method so that it runs at approxiimately the desired speed for a chip 8 emulator