got the win condition to work