Mostly incomplete code for a game in Lua