Update icemain.lua

Probably working, but not certain.