Moved light funcs to generator from game state