Works. Added a win variable.