Winning

Fixes #7.
Fixes #12.