trying to find the issue with the win state