modified guess the number vers1, removed replay function