make processInput not call redraw
rewrite graphics to use <canvas> instead of <img> for sprite storage
fix test for undefined level