Fixed an error with the didWin function

Fixed an error where I was telling javascript to check the length of an
argument given to the function, which is unneccesary as the argument
was already a number.  whoops