Fixed a bug where it always detected a win when promoting.