Hot or Cold Game in Javascript