js practice w/ textbased game