Yes, it was just NaN not a number. I tried playing again and my result is displayed correctly, so don't worry.