Update main.lua

added win state...