making mini adventure game by javascript for practice