Fixed log messages saying "null has won", also rewrote the previous commit to be much more efficient.