Fixed bug where it doesn't recognize a win until 1 turn later