Game of Life implementation in Lua