Update Generation.lua

Changed the structure a little bit