fix to winner logic