Thanks :) Actually there is no predefined end condition. But when the light intensity goes up to maximum range of float (it is 4,294,967,295), It will throw an error then you win the game :D
Is it better to have predefined end condition?