testing winner takes all code