Tod's consolebased P6 in Lua