added input and draw.lua