Added check for win condition.