Check for winning condition before we check for pawn upgrades

Fixes #20