Working on a bug with the win condition