Fix victory condition bug

Closes #196.