right the countwar function.

right the countwar function, so that could assert winner rightly.