Streamlined the code for the Hot or Cold app