Win and lose states implemented