Fixed a bug that would occur when handleWinLose was called.