finish guessing game update

This is a simple guessing game javascript.