Reinforcement learning in Lua