Bug with checking winner fixed.