Added some code to the guessing game JS