homework assignment to create a high low game in js