My best guess is that you're unable to locate the correct user, possibly because the game
property doesn't match the value you're expecting. I'd recommend adding an else
statement after the if
's where you're trying to find the user and logging the fact that you were unable to locate the user. This should help narrow down where it's going wrong.