Tod's console-based project 5 in Lua