fix bug when testing game won condition