added win and lose states