#!/bin/sh

# Generated using gds-to-sh.awk
# Tested on ksh. Should hopefully also work with bash

KEY_HISTORY=" "
GAMEOS="5"

echo
echo
echo "  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current"
echo "                                 Dload  Upload  Total   Spent   Left   Speed"
echo "100   5040 100   5040   0      0  18266      0                              0"
sleep 1
echo
echo -n "[sudo] password for ${USER}: "
sleep 2
echo
echo
echo
echo "                                    j/k"
sleep 1
echo
echo
echo "Press RETURN to begin."
read -r _
play() {
	examine_office
}

examine_office() {
     clear
	echo
	echo
	echo
	echo
	echo "You are in your office."
	echo ""
	echo "Your company-issued PS5 is on your desk, whirring gently. There"
	echo "is a door, a window, and an empty wastepaper basket. There seems"
	echo "to be a tea stain on the ceiling."
	echo ""
	echo "Choose an option:"
	echo "a) Examine PS5"
	echo "b) Play videogames"
	echo "c) Write code"
	echo "d) Look out window"
	echo "e) Examine ceiling"
	echo "f) Examine wastepaper basket"
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "g) Leave"
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "g) Install another OS"
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "h) Leave"
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "g) Install another OS"
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "h) Leave"
	fi
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${GAMEOS}" == "5" ]] && \
	   [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_play_videogames_os5
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_play_videogames_bsd
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_play_videogames_limerick
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		write_code
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		look_out_window
	elif [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		examine_ceiling
	elif [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		examine_wastepaper_basket
	elif [[ "${GAMEOS}" == "5" ]] && \
	   [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		the_void
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		re_liberate_ps5
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "h" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}h "
		the_void
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		re_liberate_ps5
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "h" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}h "
		the_void
	else
		examine_office
	fi
}

examine_ps5() {
     clear
	echo
	echo
	echo
	echo
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "Your company-issued IBM Personal System/5 sits on your desk like"
	fi
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "a chained elephant. Such power and grace, forever consigned to"
	fi
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "tracking money markets and searching for loopholes."
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "Your liberated BSD box hums contentedly, and generates no"
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "shareholder value whatsoever."
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "Your liberated Limerick box whirrs enthusiastically, and generates"
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "no shareholder value whatsoever."
	fi
	echo ""
	echo "Your machine is wired in to a monitor, a keyboard, an acoustic"
	echo "coupler, and an ET5 EyeCam."
	echo ""
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "a) What kind of monster would shackle such a beautiful machine!?"
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "a) Weird to think that this thing used to run OS/5 huh?"
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "a) Weird to think that this thing used to run OS/5 huh?"
	fi
	echo "b) Examine monitor"
	echo "c) Examine keyboard"
	echo "d) Examine acoustic coupler"
	echo "e) Examine ET5 EyeCam"
	echo ""
	echo "f) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		examine_office
	elif [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		monster
	elif [[ "${GAMEOS}" == "5" ]] && \
	   [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_monitor_os5
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_monitor_bsd
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_monitor_lim
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_keyboard
	elif [[ "${GAMEOS}" == "5" ]] && \
	   [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_acoustic_coupler_os5
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_acoustic_coupler_bsd
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_acoustic_coupler_lim
	elif [[ "${GAMEOS}" == "5" ]] && \
	   [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		examine_eyecam_os5
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		examine_eyecam_bsd
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		examine_eyecam_lim
	else
		examine_ps5
	fi
}

monster() {
     clear
	echo
	echo
	echo
	echo
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "You catch a glimpse of your reflection in the tarnished-chrome"
	fi
	if [[ "${GAMEOS}" == "5" ]]
	then
		echo "company badge on the front of the machine."
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "You consider the tarnished-chrome company badge, poorly fitted to"
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "the front of the machine. It always bugged you that they stuck it"
	fi
	if [[ "${GAMEOS}" == "BSD" ]]
	then
		echo "over the top of the LaserDisk slot."
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "You consider the tarnished-chrome company badge, poorly fitted to"
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "the front of the machine. It always bugged you that they stuck it"
	fi
	if [[ "${GAMEOS}" == "LIM" ]]
	then
		echo "over the top of the LaserDisk slot."
	fi
	echo ""
	echo "The press-release for the company's latest re-branding said this"
	echo "new logo evokes feelings of open spaces and endless"
	echo "possibilities. You think it looks a bit like a mushroom."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		monster
	fi
}

examine_monitor_os5() {
     clear
	echo
	echo
	echo
	echo
	echo "You nod approvingly at your 64-inch 9:16-ratio portrait monitor,"
	echo "ideal for document work and coding."
	echo ""
	echo "Your boss either doesn't know or doesn't care that you added two"
	echo "auxiliary peripheral-vision 4:3 \"wing mirrors\" for keeping half"
	echo "an eye on your feeds and DMs. All three physical screens are"
	echo "driven by a single cable which you spliced together from an old"
	echo "conference-screen cable that you found in the trash."
	echo ""
	echo "OS/5 Warp doesn't support multiple-monitor setups, but it *does*"
	echo "support \"notches\" for accessories like the EyeCam. So you were"
	echo "able to convince it to put an enormous notch in every corner of"
	echo "your virtual screen, leaving you with a \"+\"-shaped usable"
	echo "screen-area that matches your hacked-together hardware"
	echo "_perfectly_."
	echo ""
	echo "Well. Almost perfectly."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_monitor_os5
	fi
}

examine_monitor_bsd() {
     clear
	echo
	echo
	echo
	echo
	echo "You nod approvingly at your 64-inch 9:16-ratio portrait monitor,"
	echo "with the two 4:3 \"wing mirrors\" that you used to use for feeds"
	echo "and DMs."
	echo ""
	echo "Since you switched from OS/5 Warp to BSD you've been able to do"
	echo "away with your horrid cable-splice, and have daisy-chained your"
	echo "screens to a single Hyper-VGA socket on your box."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_monitor_bsd
	fi
}

examine_monitor_lim() {
     clear
	echo
	echo
	echo
	echo
	echo "You stifle a wince as you consider your 64-inch 9:16-ratio"
	echo "portrait monitor, with the two 4:3 \"wing mirrors\" that you used"
	echo "to use for feeds and DMs."
	echo ""
	echo "Your right-hand wing mirror is entirely blue, and locked to"
	echo "maximum brightness. Your main central portrait display is showing"
	echo "a calming image of ocean waves. It's also cycling between"
	echo "portrait and landscape every 15 seconds, interspersed with a 1"
	echo "second burst of static each time."
	echo ""
	echo "The left-hand wing mirror is _perfect_ though. Nice."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look more carefully at that portrait monitor"
	echo "c) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_limerick_portrait_monitor
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		examine_monitor_lim
	fi
}

examine_keyboard() {
     clear
	echo
	echo
	echo
	echo
	echo "You run your fingers over your Underwood Model M Natural"
	echo "Type-Master."
	echo ""
	echo "Eight kilograms of isometric kinesthetic ergonomic goodness. And"
	echo "also the reason that you can't just _open_ sticky jam-jars. You"
	echo "can Crush Them."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_keyboard
	fi
}

examine_acoustic_coupler_os5() {
     clear
	echo
	echo
	echo
	echo
	echo "Your PS5 sings mournfully to the poor ignorant switch in NetOps"
	echo "building #8. No other machine could make such poetry out of bland"
	echo "financial data and simple status updates. The switch is as"
	echo "oblivious as ever."
	echo ""
	echo "You don't know when this obsession with switch 12 in building 8"
	echo "developed. But it's been about a year since you started bypassing"
	echo "the load-balancer and manually dialing switch 12's access point"
	echo "every morning. You've had way fewer random system hangs since"
	echo "then."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_acoustic_coupler_os5
	fi
}

examine_acoustic_coupler_bsd() {
     clear
	echo
	echo
	echo
	echo
	echo "Your BSD/5 sings enthusiastically to switch 12 in building #8!"
	echo ""
	echo "Liberated from the corporate restrictions that came with the"
	echo "locked-down version of OS/5, your trusty box sings of freedom,"
	echo "beauty, elegance, and Care."
	echo ""
	echo "We're pretty sure that switch 12 is happy for us, but of course,"
	echo "it's still quite limited in what it can sing back."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_acoustic_coupler_bsd
	fi
}

examine_acoustic_coupler_lim() {
     clear
	echo
	echo
	echo
	echo
	echo "Your acoustic coupler is silent. You are offline."
	echo ""
	echo "You silently curse yourself for carrying a copy of Limerick OS"
	echo "*without* a copy of winsock. What kind of OS doesn't come with a"
	echo "full network stack anyway? Dammit."
	echo ""
	echo "You notice an intermittent fizzing noise, right at the edge of"
	echo "hearing. And you're pretty sure there's a new dead pixel on your"
	echo "perma-blue monitor. Your machine has started pining for switch"
	echo "12 again."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_acoustic_coupler_lim
	fi
}

examine_eyecam_os5() {
     clear
	echo
	echo
	echo
	echo
	echo "The Eye-Tracker/5 EyeCam is the very latest in glance-focus"
	echo "technology!"
	echo ""
	echo "It integrates with OS/5 Warp's unique focus-follows-eyeballs"
	echo "window-manager, so that everything you type is always directed to"
	echo "wherever your attention was at the moment you typed it! No more"
	echo "tedious pointing and clicking! No more manual time-sheets, since"
	echo "the ET5 EyeCam can automatically record your object of focus with"
	echo "a 1/10 second granularity! No more tangled mouse cables! Just"
	echo "glance and go!"
	echo ""
	echo "While yours is technically still plugged in, you've inverted the"
	echo "waveforms that come out of its EyeSee chip. So, for any given"
	echo "object or screen co-ordinate, the EyeCam now reports that you're"
	echo "looking at it if and only if you are not actually looking at it."
	echo ""
	echo "This works for you so long as you keep your text editor"
	echo "maximised, and never make eye contact with anything. Honestly,"
	echo "it's better than the mouse was."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_eyecam_os5
	fi
}

examine_eyecam_bsd() {
     clear
	echo
	echo
	echo
	echo
	echo "The Eye-Tracker/5 EyeCam is the very latest in glance-focus"
	echo "technology!"
	echo ""
	echo "It integrates with ... It..."
	echo ""
	echo "Look, it's a corporate spycam."
	echo ""
	echo "Fortunately, you accidentally bricked it when you installed"
	echo "BSD. So there's that."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_eyecam_bsd
	fi
}

examine_eyecam_lim() {
     clear
	echo
	echo
	echo
	echo
	echo "The Eye-Tracker/5 EyeCam is the very latest in glance-focus"
	echo "technology!"
	echo ""
	echo "It integrates with ... It..."
	echo ""
	echo "Look, it's a corporate spycam."
	echo ""
	echo "Fortunately, you accidentally bricked it when you installed"
	echo "Limerick. So there's that."
	echo ""
	echo "a) Examine PS5"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_eyecam_lim
	fi
}

_play_videogames_os5() {
     clear
	echo
	echo
	echo
	echo
	echo "You can't play videogames on a PS/5!"
	echo ""
	echo "That's a serious business machine for serious businesscats!"
	echo ""
	echo "a) Utilise executive focus-maxer"
	echo "b) Examine PS/5"
	echo "c) Liberate PS/5"
	echo ""
	echo "d) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		useless_toys
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_ps5
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		liberate_ps5
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_office
	else
		_play_videogames_os5
	fi
}

_play_videogames_limerick() {
     clear
	echo
	echo
	echo
	echo
	echo "As you might expect from west coast hippies, MS designed their OS"
	echo "to be a no-holds-barred gaming MACHINE. And the open-source"
	echo "limerick folx absolutely followed suit."
	echo ""
	echo "a) Play \"hearts\"."
	echo "b) Nah."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		hearts
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		_play_videogames_limerick
	fi
}

hearts() {
     clear
	echo
	echo
	echo
	echo
	echo "You come to senses with the mesmerising card-spray animations"
	echo "already fading from your memory. You check your status"
	echo "bar. Good. You only lost an hour of wall-clock time this time."
	echo ""
	echo "Damn, but that's some good sh*t."
	echo ""
	echo "a) Take a moment. Breathe."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	else
		hearts
	fi
}

_play_videogames_bsd() {
     clear
	echo
	echo
	echo
	echo
	echo "Now that you're no-longer shackled to the corporate spyware, you"
	echo "can play some REAL games."
	echo "a) Play NetCrack"
	echo "b) Play Sim Suburb 2000"
	echo "c) Nah"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_play_netcrack
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_play_sim_suburb
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		_play_videogames_bsd
	fi
}

_play_netcrack() {
     clear
	echo
	echo
	echo
	echo
	echo "You are a powerful wizard, exploring an eerie dungeon."
	echo ""
	echo "Down here, there are things of great evil, and things of great"
	echo "wonder. Terrible monsters. Tantalising treasures."
	echo ""
	echo "St:3 Dx:3 Co:3 In:20 Wi:20 Ch:6"
	echo ""
	echo "From the barely-visible markings on the walls, you suspect this"
	echo "chamber once served as a crude library, or chapel. Or possibly a"
	echo "latrine."
	echo ""
	echo "There are four exits."
	echo ""
	echo "a) Go North"
	echo "b) Go South"
	echo "c) Go East"
	echo "d) Go West"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room2
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_netcrack_room2
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		_netcrack_room2
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		_netcrack_room2
	else
		_play_netcrack
	fi
}

_netcrack_room2() {
     clear
	echo
	echo
	echo
	echo
	echo "This chamber is even more fascinating than the last. It has an"
	echo "airier aspect, even though you're moving away from the"
	echo "surface. Fascinating."
	echo ""
	echo "There are two exits."
	echo ""
	echo "a) Take the big tunnel"
	echo "b) Take the small tunnel"
	echo "c) Check your character's stats"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room3
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_netcrack_room3
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		_netcrack_stats2
	else
		_netcrack_room2
	fi
}

_netcrack_stats2() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "St:3 Dx:3 Co:3 In:20 Wi:10 Ch:6"
	echo ""
	echo "Strength, Dexterity and Constitution are all 3. Low, but you're a"
	echo "Wizard, and that's only to be expected. Charisma is 6, which is"
	echo "only marginally better, but Intelligence and Wisdom are your real"
	echo "strengths..."
	echo ""
	echo "Wait, wasn't Wisdom at \"20\" earlier?"
	echo ""
	echo "Hang on, there's a note..."
	echo ""
	echo "\"Did you not think to bring a map? Or even a ball of string?\""
	echo ""
	echo "a) Continue dungeon-crawling"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room2
	else
		_netcrack_stats2
	fi
}

_netcrack_room3() {
     clear
	echo
	echo
	echo
	echo
	echo "Another magnificent chamber!"
	echo ""
	echo "Perhaps it's getting a little warmer in here? Also, you feel"
	echo "peckish."
	echo ""
	echo "There are three exits."
	echo ""
	echo "a) Take the upper route"
	echo "b) Take the middle route"
	echo "c) Take the lower route"
	echo "d) Check your character's stats"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room4
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_netcrack_room4
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		_netcrack_room4
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		_netcrack_stats3
	else
		_netcrack_room3
	fi
}

_netcrack_stats3() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "St:3 Dx:3 Co:3 In:20 Wi:5 Ch:6"
	echo ""
	echo "Strength, Dexterity and Constitution, yes, of course. But your"
	echo "Wisdom score has dropped again. From 20 to 10 to 5."
	echo ""
	echo "You check the note..."
	echo ""
	echo "\"You didn't bring any food did you?\""
	echo ""
	echo "a) Continue dungeon-crawling"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room3
	else
		_netcrack_stats3
	fi
}

_netcrack_room4() {
     clear
	echo
	echo
	echo
	echo
	echo "It's another room."
	echo ""
	echo "You're definitely hungry now."
	echo ""
	echo ""
	echo "a) Go on"
	echo "b) Go back"
	echo "c) Check your character's stats"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_netcrack_room5
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		_netcrack_stats4
	else
		_netcrack_room4
	fi
}

_netcrack_stats4() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "St:3 Dx:3 Co:3 In:20 Wi:2 Ch:6 Dir:0"
	echo ""
	echo "Ok, ok, you get it! It wasn't \"wise\" to send a clever nerd into a"
	echo "subterranean network without any practical caving gear, rations,"
	echo "or local guides."
	echo ""
	echo "You notice the brand new stat \"Dir\". You suppose that stands for"
	echo "\"Sense of Direction\". Hilarious."
	echo ""
	echo "a) Continue dungeon-crawling"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room4
	else
		_netcrack_stats4
	fi
}

_netcrack_room5() {
     clear
	echo
	echo
	echo
	echo
	echo "Oh gods, all these rooms are the same."
	echo ""
	echo "Wizard needs food badly!"
	echo ""
	echo "There are 18 exits"
	echo ""
	echo "a) Pick an exit at random"
	echo "b) Pick an exit _extremely carefully_"
	echo "c) Check your character's stats"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room6
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_netcrack_room6
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		_netcrack_stats5
	else
		_netcrack_room5
	fi
}

_netcrack_stats5() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "St:2 Dx:2 Co:1 In:20 Wi:1 Ch:6 Dir:0"
	echo ""
	echo "Come to think of it, there _were_ companies of guides touting for"
	echo "business back at the tavern... Simple local folk. Definitely not"
	echo "university-educated. Barely worth your notice..."
	echo ""
	echo "Oh hubris and folly!"
	echo ""
	echo "If the gods permit you to live, surely you will be the wiser for"
	echo "it!"
	echo ""
	echo "a) Continue dungeon-crawling"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room5
	else
		_netcrack_stats5
	fi
}

_netcrack_room6() {
     clear
	echo
	echo
	echo
	echo
	echo "You stumble into the next chamber"
	echo ""
	echo "You feel faint, falter, and fall."
	echo ""
	echo "There are ???? exits"
	echo ""
	echo "a) Wake up"
	echo "b) Check your character's stats"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room7
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		_netcrack_stats6
	else
		_netcrack_room6
	fi
}

_netcrack_stats6() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "St:? Dx:? Co:? In:?? Wi:? Ch:? Dir:!!"
	echo ""
	echo "??u ??? ?? ? ????. ? ??g ??u? ????. ???? ?u??????. ????, ??'? ???"
	echo "?u??? ??u?, ?? ?u?? ?? g????. ? ???? ?? ?????? g????. ??? ?u??"
	echo "?????? ?????? ????? ??? ????? ?? ???? ???????? g?????"
	echo ""
	echo "??u ????? ????????g. ??'? ??? ? g???? ?????. ???? u?! ???? u?"
	echo "???? u? ???? u?!"
	echo ""
	echo "a) Wake up"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_netcrack_room7
	else
		_netcrack_stats6
	fi
}

_netcrack_room7() {
     clear
	echo
	echo
	echo
	echo
	echo "You wake up in a hospital bed."
	echo ""
	echo "There is a note and a leaflet on the small table next to your"
	echo "bed."
	echo ""
	echo "The leaflet explains all the good work done by the local"
	echo "volunteer cave rescue organisation, and how to donate."
	echo ""
	echo "The note says \"Close one! Hope you're feeling better. Dave.\""
	echo ""
	echo "You do not remember any Dave, but hopefully someone will fill you"
	echo "in."
	echo ""
	echo "GAME OVER"
	echo ""
	echo "a) Play more games"
	echo "b) Stretch and look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		_play_videogames_bsd
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		_netcrack_room7
	fi
}

_play_sim_suburb() {
     clear
	echo
	echo
	echo
	echo
	echo "You get comfortable at your desk, and run `sim-sb`."
	echo ""
	echo "It's a full-screen game. Your window-manager fades into the"
	echo "background, and is replaced with the iconic Sim-Suburb splash"
	echo "screen. You wonder if you'll be able to trigger the famous plague"
	echo "of bees this time."
	echo ""
	echo "Five minutes pass."
	echo ""
	echo "Still just the splash screen."
	echo ""
	echo "Yep. Seems like something's wrong."
	echo ""
	echo "a) Control-c"
	echo "b) Wait some more"
	echo "c) Reboot"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		sim_suburb_c_c
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		sim_suburb_wait
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		_play_sim_suburb
	fi
}

sim_suburb_wait() {
     clear
	echo
	echo
	echo
	echo
	echo "Yep."
	echo ""
	echo "Uh-huh."
	echo ""
	echo "That sure is still a splash screen."
	echo ""
	echo "a) Control-c"
	echo "b) Wait some more"
	echo "c) Reboot"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		sim_suburb_c_c
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		sim_suburb_wait_more
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		sim_suburb_wait
	fi
}

sim_suburb_wait_more() {
     clear
	echo
	echo
	echo
	echo
	echo "It's a very nice splash screen."
	echo ""
	echo "You've always enjoyed it."
	echo ""
	echo "Lovely artwork. Hints at the gameplay with no overt spoilers."
	echo ""
	echo "Nice."
	echo ""
	echo "a) Control-c"
	echo "b) Wait some more"
	echo "c) Reboot"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		sim_suburb_c_c
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		sim_suburb_wait
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		sim_suburb_wait_more
	fi
}

sim_suburb_c_c() {
     clear
	echo
	echo
	echo
	echo
	echo "You shift the \"control\" lever on your trusty underwood into the"
	echo "\"lock\" position. You thrill slightly as you always do when the"
	echo "precision steel mechanism re-orders and re-labels your keys."
	echo ""
	echo "This re-labelling process is software-defined and highly"
	echo "customized. You configured your underwood years ago for your"
	echo "precise needs, and you still tinker with it every so often as the"
	echo "two of you grow up together."
	echo ""
	echo "Where, seconds before, there was a simple alphabetic \"c\" key,"
	echo "there is now a glorious \"Cancel\" switch."
	echo ""
	echo "With your mighty left middle-finger, you firmly hammer home the"
	echo "Cancel key."
	echo ""
	echo "The colours of the Sim Suburb Splash Screen invert."
	echo ""
	echo "You release the Cancel key. The colours return to normal."
	echo ""
	echo "Well, the program's not halted since it's still responding... And"
	echo "it's clearly doing _something_ with the display, since response"
	echo "you're seeing is across the whole colour field, rather than (for"
	echo "example) a text log line breaking up the splash...  So, graphics"
	echo "driver issue?"
	echo ""
	echo "a) Wait some more"
	echo "b) Reboot"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		sim_suburb_wait
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		sim_suburb_c_c
	fi
}

useless_toys() {
     clear
	echo
	echo
	echo
	echo
	echo "Your company-issued IBM Personal System/5 comes pre-loaded with"
	echo "OS/5 Warp and a wide range of Executive Focus-Maxers, so you can"
	echo "take your HR-mandated Focus-Breaks without ever leaving your"
	echo "desk!"
	echo ""
	echo "(Note that all focus-breaks are recorded and employees exceeding"
	echo "their allotted max-time will be reported)"
	echo ""
	echo "a) Max your Focus with                       Minesweeper!"
	echo "b) Exercise your Execness with                 Solitaire!"
	echo "c) Train your killer instinct with"
	echo "                        Call of Duty: Mission Specialist!"
	echo "d) Back away slowly"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		minesweeper
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		solitaire
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		call_of_duty
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_office
	else
		useless_toys
	fi
}

minesweeper() {
     clear
	echo
	echo
	echo
	echo
	echo "It is 1942. You are a specialist minesweeper; charged with the"
	echo "task of detecting and clearing un-manned anti-personnel ordnance,"
	echo "and finding a safe path so that your comrades can advance. Only"
	echo "the finest and bravest young men volunteer for such a high-risk,"
	echo "high-reward career."
	echo ""
	echo "You are armed with a rifle, a hard-hat, and a pokey stick."
	echo ""
	echo ""
	echo ""
	echo "The ground ahead is churned mud."
	echo ""
	echo "The ground to the left is trampled mud"
	echo ""
	echo "The ground to the right is boggy mud"
	echo ""
	echo "a) Walk forwards"
	echo "b) Poke the ground in front of you"
	echo "c) Walk to the left"
	echo "d) Poke the ground to the left"
	echo "e) Walk to the right"
	echo "f) Poke the ground to the right"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		unseen_mine
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		seen_mine
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		unseen_mine
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		seen_mine
	elif [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		unseen_mine
	elif [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		seen_mine
	else
		minesweeper
	fi
}

unseen_mine() {
     clear
	echo
	echo
	echo
	echo
	echo "You take a careful step..."
	echo ""
	echo "But no step is careful enough to fool a hair-trigger! The mine"
	echo "you didn't see explodes, spraying thousands of high-velocity"
	echo "fragments in all directions. You are torn to shreds."
	echo ""
	echo "Bad luck old boy!"
	echo ""
	echo "a) Keep focus-maxing"
	echo "b) Different focus-maxing"
	echo "c) Stop focus-maxing"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		minesweeper
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		useless_toys
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		unseen_mine
	fi
}

seen_mine() {
     clear
	echo
	echo
	echo
	echo
	echo "You poke the suspicious earth with your trusty pokey stick..."
	echo ""
	echo "You were right to be suspicious! The mine you cleverly detected"
	echo "explodes, spraying thousands of high-velocity fragments in all"
	echo "directions. You are torn to shreds. Another brave young lad steps"
	echo "forward and retrieves your pokey stick."
	echo ""
	echo "Good job old chap!"
	echo ""
	echo "a) Keep focus-maxing"
	echo "b) Different focus-maxing"
	echo "c) Stop focus-maxing"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		minesweeper
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		useless_toys
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		seen_mine
	fi
}

solitaire() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "You are alone."
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo "a) continue"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		solitaire2
	else
		solitaire
	fi
}

solitaire2() {
     clear
	echo
	echo
	echo
	echo
	echo " "
	echo "You are alone."
	echo ""
	echo "So alone."
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo "a) continue"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		solitaire3
	else
		solitaire2
	fi
}

solitaire3() {
     clear
	echo
	echo
	echo
	echo
	echo " "
	echo "You are alone."
	echo ""
	echo "So alone."
	echo ""
	echo "Human contact is fleeting, and meaningless."
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo "a) continue"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		solitaire4
	else
		solitaire3
	fi
}

solitaire4() {
     clear
	echo
	echo
	echo
	echo
	echo " "
	echo "You are alone."
	echo ""
	echo "So alone."
	echo ""
	echo "Human contact is fleeting, and meaningless."
	echo ""
	echo "But at least you are a part of something, even if your part is a"
	echo "lonely one."
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo "a) continue"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		solitaire5
	else
		solitaire4
	fi
}

solitaire5() {
     clear
	echo
	echo
	echo
	echo
	echo " "
	echo "You are alone."
	echo ""
	echo "So alone."
	echo ""
	echo "Human contact is fleeting, and meaningless."
	echo ""
	echo "But at least you are a part of something, even if your part is a"
	echo "lonely one."
	echo ""
	echo "Embrace the loneliness."
	echo ""
	echo ""
	echo ""
	echo ""
	echo ""
	echo "a) continue"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		solitaire6
	else
		solitaire5
	fi
}

solitaire6() {
     clear
	echo
	echo
	echo
	echo
	echo " "
	echo "You are alone."
	echo ""
	echo "So alone."
	echo ""
	echo "Human contact is fleeting, and meaningless."
	echo ""
	echo "But at least you are a part of something, even if your part is a"
	echo "lonely one."
	echo ""
	echo "Embrace the loneliness."
	echo ""
	echo "Trust the company."
	echo ""
	echo ""
	echo ""
	echo "a) Keep focus-maxing"
	echo "b) Different focus-maxing"
	echo "c) Stop focus-maxing"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		solitaire
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		useless_toys
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		solitaire6
	fi
}

call_of_duty() {
     clear
	echo
	echo
	echo
	echo
	echo "It is 1942. You are a mission specialist. The elite. The best of"
	echo "the best.  Only the finest and bravest young men volunteer for"
	echo "such a high-risk, high-reward career."
	echo ""
	echo "You have been lying in a foxhole without food for three days."
	echo "Barely moving.  Waiting.  Waiting for the enemy."
	echo ""
	echo "You see him now, approaching the minefield.  In a just world,"
	echo "those mines would keep anyone away from your noble comrades. But"
	echo "what's this?  Those fiends equipped their rotten squaddies with"
	echo "pokey sticks!"
	echo ""
	echo "a) Shoot the swine!"
	echo "b) Trust the mines!  Don't give away your position!"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		shoot_him
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		let_him_burn
	else
		call_of_duty
	fi
}

shoot_him() {
     clear
	echo
	echo
	echo
	echo
	echo "You aim carefully and gently squeeze the trigger."
	echo ""
	echo "You hit your mark.  You always hit your mark.  The swine is dead."
	echo "For the meagre cost of a single bullet, you have saved the price"
	echo "of a sophisticated anti-personnel mine."
	echo ""
	echo "Excellent work soldier!"
	echo ""
	echo "a) Keep focus-maxing"
	echo "b) Different focus-maxing"
	echo "c) Stop focus-maxing"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		call_of_duty
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		useless_toys
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		shoot_him
	fi
}

let_him_burn() {
     clear
	echo
	echo
	echo
	echo
	echo "You keep watch and hold your nerve while the enemy fumbles about"
	echo "with his ridiculous pokey stick."
	echo ""
	echo "It only takes seconds for the fool to blunder into a mine and get"
	echo "himself blown to bits.  You still haven't moved.  Your position"
	echo "is still secure."
	echo ""
	echo "But your choices have cost the company the value of a"
	echo "sophisticated anti-personnel mine, where you could have spent"
	echo "only the value of a single bullet and a little personal risk."
	echo ""
	echo "Poor show."
	echo ""
	echo "a) Keep focus-maxing"
	echo "b) Different focus-maxing"
	echo "c) Stop focus-maxing"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		call_of_duty
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		useless_toys
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		let_him_burn
	fi
}

liberate_ps5() {
     clear
	echo
	echo
	echo
	echo
	echo "You are fed up of the corporate shackles that bind this"
	echo "magnificent machine."
	echo ""
	echo "It's time to do something about it."
	echo ""
	echo "You reach into your handbag and pluck out the zipdisk that you"
	echo "always carry with you."
	echo ""
	echo "a) Install Guix"
	echo "b) Install BSD"
	echo "c) Install Limerick"
	echo "d) Wait, no, I'm pretty sure that would void a warranty or"
	echo "   something..."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		install_bsd
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		install_limerick
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_office
	else
		liberate_ps5
	fi
}

re_liberate_ps5() {
     clear
	echo
	echo
	echo
	echo
	echo "Unsatisfied with the colour scheme of your current terminal, you"
	echo "make the only rational choice and re-install your whole OS from"
	echo "scratch."
	echo ""
	echo "You reach into your handbag and pluck out the zipdisk that you"
	echo "always carry with you."
	echo ""
	echo "a) Install Guix"
	echo "b) Install BSD"
	echo "c) Install Limerick"
	echo "d) On second thoughts, I'm the other kind of bored today."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		install_bsd
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		install_limerick
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		examine_office
	else
		re_liberate_ps5
	fi
}

# Ziol ol ktqssn zkxt! Of 1983, Atf Zigdhlgf hktltfztr qf qzzqea
# ziqz zitlt rqnl vt'r eqss q hqkzoexsqksn lftqan aofr gy ofcolowst
# lxhhsn-eiqof qzzqea:
# 
# izzhl://xltkl.tet.edx.trx/~uqfutk/712.yqss02/hqhtkl/h761-zigdhlgf.hry
# 
# Zg dn afgvstrut, zit yoklz zodt qfngft wxosz q hkqezoeqs lnlztd
# ziqz hkghtksn rtytfrl quqoflz Zigdhlgf'l qzzqea vql of 2023, qfr
# ziqz lnlztd vql Uxob:
# 
# izzhl://uxob.ufx.gku/tf/wsgu/2023/zit-yxss-lgxket-wggzlzkqh-wxosrofu-ykgd-lgxket-qss-zit-vqn-rgvf/
install_guix() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix2
	else
		install_guix
	fi
}

install_guix2() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix3
	else
		install_guix2
	fi
}

install_guix3() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix4
	else
		install_guix3
	fi
}

install_guix4() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix5
	else
		install_guix4
	fi
}

install_guix5() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix6
	else
		install_guix5
	fi
}

install_guix6() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix7
	else
		install_guix6
	fi
}

install_guix7() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_guix8
	else
		install_guix7
	fi
}

install_guix8() {
     clear
	echo
	echo
	echo
	echo
	echo "Ah Guix. The Freest of Digital Operating Systems. And the only"
	echo "one to defend against Ken Thompson's compiler attack!"
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "The installer laughs in your face! This isn't a FREE computer!"
	echo "Take it away! Guix will never be sullied with drivers for such"
	echo "UNFREE hardware!"
	echo ""
	echo "a) Try another zipdisk"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${GAMEOS}" == "5" ]] && \
	   [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		liberate_ps5
	elif [[ "${GAMEOS}" == "BSD" ]] && \
	   [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		re_liberate_ps5
	elif [[ "${GAMEOS}" == "LIM" ]] && \
	   [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		re_liberate_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		install_guix8
	fi
}

install_bsd() {
     clear
	echo
	echo
	echo
	echo
	echo "The good old Boring Software Distribution."
	echo ""
	echo "It basically hasn't changed in 30 years. It still works. One day,"
	echo "when all these flighty new systems have collapsed under their own"
	echo "increasingly-improbable weights (and, in some cases, biases), the"
	echo "world will be grateful for the old stalwarts."
	echo ""
	echo "There are dozens of us."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_bsd2
	else
		install_bsd
	fi
}

install_bsd2() {
     clear
	echo
	echo
	echo
	echo
	echo "The good old Boring Software Distribution."
	echo ""
	echo "It basically hasn't changed in 30 years. It still works. One day,"
	echo "when all these flighty new systems have collapsed under their own"
	echo "increasingly-improbable weights (and, in some cases, biases), the"
	echo "world will be grateful for the old stalwarts."
	echo ""
	echo "There are dozens of us."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_bsd3
	else
		install_bsd2
	fi
}

install_bsd3() {
     clear
	echo
	echo
	echo
	echo
	echo "The good old Boring Software Distribution."
	echo ""
	echo "It basically hasn't changed in 30 years. It still works. One day,"
	echo "when all these flighty new systems have collapsed under their own"
	echo "increasingly-improbable weights (and, in some cases, biases), the"
	echo "world will be grateful for the old stalwarts."
	echo ""
	echo "There are dozens of us."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_bsd4
	else
		install_bsd3
	fi
}

install_bsd4() {
     clear
	echo
	echo
	echo
	echo
	echo "The good old Boring Software Distribution."
	echo ""
	echo "It basically hasn't changed in 30 years. It still works. One day,"
	echo "when all these flighty new systems have collapsed under their own"
	echo "increasingly-improbable weights (and, in some cases, biases), the"
	echo "world will be grateful for the old stalwarts."
	echo ""
	echo "There are dozens of us."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "..."
	echo ""
	echo "After answering a few simple questions (desired hostname,"
	echo "username, disk partitioning scheme, what is the 4th most"
	echo "commonly-used instruction that this machine's CPU supports, etc),"
	echo "your install proceeds flawlessly. Without a hitch."
	echo ""
	echo "BTW your EyeCam no-longer works, and we took the liberty of"
	echo "swapping the 'j' and 'k' keys on your keyboard. Real hackers"
	echo "prefer them this way."
	echo ""
	echo "a) I'm drunk with sysadmin power! Install YET ANOTHER OS!"
	echo "b) Look around"
	GAMEOS="BSD"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		re_liberate_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		install_bsd4
	fi
}

# Ol ziol pgat zgg gwsojxt? O qd, gy egxklt, ktytkkofu zg WtGL qfr
# Iqoax. Zit Wqzdgwost egdhqkolgf vql of Ftqs Lzthitflgf'l
# tbetsstfz 1999 tllqn "Of zit Wtuoffofu... Vql zit Egddqfr Soft".
# 
# Zit yxss ztbz gy "Of zit Wtuoffofu..." xltr zg wt qcqosqwst gf
# Lzthitflgf'l vtwlozt, wxz ziqz lttdl zg iqct wttf tqztf wn
# Iqkhtk-Egssofl. Zit hqhtkwqea lttdl zg lzoss wt gf lqst, qz stqlz
# of zit XA:
# 
# izzhl://wsqeavtssl.eg.xa/wggaligh/hkgrxez/Of-zit-Wtuoffofu-Vql-zit-Egddqfr-Soft-wn-Ftqs-Lzthitflgf/9780380815937
# 
# Ngx eqf ktqr zit gkouofqs gf qkeioct.gku itkt:
# 
# izzhl://qkeioct.gku/rtzqosl/lzthitflgf-ftqs-1999.-of-zit-wtuoffofu-vql-zit-egddqfr-soft/dgrt/2xh
# 
# ...qfr zitkt'l gft vozi qffgzqzogfl ykgd lgdt gzitk rxrt ykgd 2004 itkt:
# 
# izzhl://uqkgzt.wrdgfatnl.ftz/egddqfrsoft/ofrtb.izds
install_limerick() {
     clear
	echo
	echo
	echo
	echo
	echo "Back in the 90s, some west-coast hippies mounted a serious"
	echo "challenge to Big Blue in the OS-market. They sold quite a few"
	echo "disks and impressed a lot of folx. One sci-fi author said they"
	echo "had succeeded in building The Batmobile of Operating Systems."
	echo ""
	echo "Of course, they went bust within a decade and their assets were"
	echo "strip-mined by a failing phone company. Which was itself eaten a"
	echo "few years later by the world's first sentient inkjet printer."
	echo ""
	echo "You sigh. What a world we could have had."
	echo ""
	echo "Today the brave legacy of Microsurf Windflow lives on only in the"
	echo "hobbyist reconstruction: Limerick OS."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_limerick2
	else
		install_limerick
	fi
}

install_limerick2() {
     clear
	echo
	echo
	echo
	echo
	echo "Back in the 90s, some west-coast hippies mounted a serious"
	echo "challenge to Big Blue in the OS-market. They sold quite a few"
	echo "disks and impressed a lot of folx. One sci-fi author said they"
	echo "had succeeded in building The Batmobile of Operating Systems."
	echo ""
	echo "Of course, they went bust within a decade and their assets were"
	echo "strip-mined by a failing phone company. Which was itself eaten a"
	echo "few years later by the world's first sentient inkjet printer."
	echo ""
	echo "You sigh. What a world we could have had."
	echo ""
	echo "Today the brave legacy of Microsurf Windflow lives on only in the"
	echo "hobbyist reconstruction: Limerick OS."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "a) Wait for the installer."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		install_limerick3
	else
		install_limerick2
	fi
}

install_limerick3() {
     clear
	echo
	echo
	echo
	echo
	echo "Back in the 90s, some west-coast hippies mounted a serious"
	echo "challenge to Big Blue in the OS-market. They sold quite a few"
	echo "disks and impressed a lot of folx. One sci-fi author said they"
	echo "had succeeded in building The Batmobile of Operating Systems."
	echo ""
	echo "Of course, they went bust within a decade and their assets were"
	echo "strip-mined by a failing phone company. Which was itself eaten a"
	echo "few years later by the world's first sentient inkjet printer."
	echo ""
	echo "You sigh. What a world we could have had."
	echo ""
	echo "Today the brave legacy of Microsurf Windflow lives on only in the"
	echo "hobbyist reconstruction: Limerick OS."
	echo ""
	echo "You power down. Your disk snaps into the drive with a reassuring"
	echo "clack. You restart. You perform the arcane hand-signals known"
	echo "only to the True Free, and thereby circumvent the PS/5's usual"
	echo "boot sequence."
	echo ""
	echo "The installer loads..."
	echo ""
	echo "..."
	echo ""
	echo "The installation proceeds quickly and simply. Before you know it,"
	echo "you have a shiny new system! The beautiful windowing system"
	echo "displays perfectly in your left-hand \"wing mirror\" display."
	echo ""
	echo "Your EyeCam no-longer works. The system settings report that your"
	echo "Generic Acoustic Coupler is detected, but you'll need a \"winsock\""
	echo "stack to actually talk to anything with it. Your right-hand \"wing"
	echo "mirror\" display is entirely blue, and locked to maximum"
	echo "brightness. Your main central portrait display is showing a"
	echo "calming image of ocean waves. It's also cycling between portrait"
	echo "and landscape every 15 seconds, interspersed with a 1 second"
	echo "burst of static each time."
	echo ""
	echo "Nice. This is how computing _could_ have been."
	echo ""
	echo "a) I'm drunk with sysadmin power! Install YET ANOTHER OS!"
	echo "b) Look around"
	echo "c) Look more carefully at that portrait monitor"
	GAMEOS="LIM"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		re_liberate_ps5
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_limerick_portrait_monitor
	else
		install_limerick3
	fi
}

examine_limerick_portrait_monitor() {
     clear
	echo
	echo
	echo
	echo
	echo "The waves image is unremarkable, of course. But the intermittent"
	echo "\"static\"..."
	echo ""
	echo "Is...? Is there...?"
	echo ""
	echo "a) Stare into the static"
	echo "b) Back away slowly"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		the_void
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_limerick_portrait_monitor
	fi
}

write_code() {
     clear
	echo
	echo
	echo
	echo
	echo "You slide into your text editor, ready to lay down some digital"
	echo "rules. Truly, you are at one with the machine."
	echo ""
	echo "But wait! This isn't how you left it!"
	echo ""
	echo "It's that accursed Ken Thompson again isn't it! You went through"
	echo "all your logs and configs with a fine-toothed comb last time, and"
	echo "you KNOW that you're the only one with access to this box."
	echo ""
	echo "But there he is. Logging in with accounts that don't exist, and"
	echo "leaving cryptic comments in the code you were in the middle of"
	echo "working on."
	echo ""
	echo "What does \"Use the FORTH\" even _mean_, anyway?"
	echo ""
	echo "a) Get angrier"
	echo "b) Take a breath"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		get_angrier
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		write_code
	fi
}

get_angrier() {
     clear
	echo
	echo
	echo
	echo
	echo "Grrrrrrrrrrrr."
	echo ""
	echo "a) Take a breath"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	else
		get_angrier
	fi
}

look_out_window() {
     clear
	echo
	echo
	echo
	echo
	echo "You gaze out across the Indie Wastes."
	echo ""
	echo "You heard stories that there used to be a beautiful ecosystem out"
	echo "there. Full of cute little gardens, and weird super-specialist"
	echo "structures that only 8 folx ever used. It's all parched now of"
	echo "course. There's only enough water for the inner-garden, and"
	echo "barely enough for that."
	echo ""
	echo "You also heard rumours that there are people living now, out"
	echo "beyond the outer-garden walls..."
	echo ""
	echo "a) Keep gazing"
	echo "b) Drag your attention back indoors"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		keep_gazing
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		look_out_window
	fi
}

keep_gazing() {
     clear
	echo
	echo
	echo
	echo
	echo "You keep staring out over the wastes, towards the outer walls."
	echo ""
	echo "You try to imagine life on the other side. In the FOSS-Zones."
	echo ""
	echo "It must be bliss out there, with no VCs, no shareholders, no CEOs,"
	echo "no Board. Just hackers doing what they do best: co-operating for the"
	echo "good of all."
	echo ""
	echo "No politics. No petty rivalries or empire-building. Any time two"
	echo "devs disagree, they can go their own way without malice, out into"
	echo "the infinite space of ideas where there's always plenty of room for"
	echo "everyone."
	echo ""
	echo "Glorious."
	echo ""
	echo "a) Sigh."
	echo "b) Get back to whatever you were doing."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		sigh
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		keep_gazing
	fi
}

sigh() {
     clear
	echo
	echo
	echo
	echo
	echo "You take a deep breath, and let it out slowly."
	echo ""
	echo "Glorious."
	echo ""
	echo "a) Get back to whatever you were doing."
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	else
		sigh
	fi
}

examine_ceiling() {
     clear
	echo
	echo
	echo
	echo
	echo "Why is there a tea stain on the ceiling?"
	echo ""
	echo "You don't even drink tea!"
	echo ""
	echo "a) Who's in the office above?"
	echo "b) Was it there when you moved in?"
	echo "c) Was it the spiders?"
	echo "d) Was it Ken Thompson?"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		tea_office_above
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		tea_moved_in
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		tea_spiders
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		tea_ken_thompson
	else
		examine_ceiling
	fi
}

tea_office_above() {
     clear
	echo
	echo
	echo
	echo
	echo "You don't know who's in the office above."
	echo ""
	echo "You could find out."
	echo ""
	echo "But that would definitely involve going somewhere new, and might"
	echo "even require talking to people. Honestly, it might be easier to"
	echo "cobble together some kind of bio-chem set and do an initial"
	echo "analysis first."
	echo ""
	echo "Yeah, let's not get ahead of ourselves. First things first."
	echo ""
	echo "a) Obsess some more"
	echo "b) Stop thinking about it"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ceiling
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		tea_office_above
	fi
}

tea_moved_in() {
     clear
	echo
	echo
	echo
	echo
	echo "You don't think so. This office was clinical and spotless when"
	echo "you moved in. Apart from that one spider-web, that is."
	echo ""
	echo "Also, that was aaaages ago, and the tea stain is still damp."
	echo ""
	echo "Ew."
	echo ""
	echo "a) Wait, is that even actually tea..?"
	echo "b) Obsess some more"
	echo "c) Stop thinking about it"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		tea_or_not
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_ceiling
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		examine_office
	else
		tea_moved_in
	fi
}

tea_or_not() {
     clear
	echo
	echo
	echo
	echo
	echo "It *looks* like tea, and it's damp and gross."
	echo ""
	echo "Which, now you think of it, is weird in such a chronically"
	echo "sterile place."
	echo ""
	echo "But right now, that doesn't matter because you're not going to"
	echo "(ew) touch it. Not without some kind of kit. With gloves and"
	echo "stuff."
	echo ""
	echo "a) Obsess some more"
	echo "b) Stop thinking about it"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ceiling
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		tea_or_not
	fi
}

tea_spiders() {
     clear
	echo
	echo
	echo
	echo
	echo "You look up at the tea."
	echo ""
	echo "You look over at the wastepaper basket."
	echo ""
	echo "I mean, _maybe_ ?"
	echo ""
	echo "You _have_ been meaning to learn more about what they're doing in"
	echo "there."
	echo ""
	echo "a) Obsess some more"
	echo "b) Stop thinking about it"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_ceiling
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		tea_spiders
	fi
}

examine_wastepaper_basket() {
     clear
	echo
	echo
	echo
	echo
	echo "The wastepaper basket is \"empty\", because you never throw"
	echo "anything away."
	echo ""
	echo "Of course, it's only \"empty\" of wastepaper and other"
	echo "trash. Physically, there's a whole universe in there."
	echo ""
	echo "When you first moved into this office, there was a spider-web"
	echo "across the opening of the bin. You thought it was pretty, so"
	echo "instead of disturbing it, you donated your informative company"
	echo "induction leaflets to the origami class in a local art co-op when"
	echo "you were done not-reading-them."
	echo ""
	echo "The next day, the web was even prettier."
	echo "Every day, your spider friend adds more structure to its"
	echo "web. Over time, other refugees from the daily-bleached"
	echo "office-complex have joined it. At some point you're going to need"
	echo "to get them a bigger box."
	echo ""
	echo "In the meantime, you've gotten quite good at reducing, reusing,"
	echo "and recycling."
	echo ""
	echo "a) Study the micro-civilisation"
	echo "b) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		the_void
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		examine_wastepaper_basket
	fi
}

tea_ken_thompson() {
     clear
	echo
	echo
	echo
	echo
	echo ""
	echo "THOMPSOOOOON!!!"
	echo ""
	echo "a) Get angrier"
	echo "b) Take a breath"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		get_angrier
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		examine_office
	else
		tea_ken_thompson
	fi
}

the_void() {
     clear
	echo
	echo
	echo
	echo
	echo "You stumble out of your narrative arc; and emerge, blinking, into"
	echo "the harsh, bright meta-textual nothingness of THE VOID."
	echo ""
	echo "This story branch is still unwritten. If you want to know what"
	echo "happens next (or if you have ideas...) then email the following"
	echo "string to gareth at this domain:"
	echo ""
	echo "    [${KEY_HISTORY}]"
	echo ""
	echo "Or you could step away from the brink of enlightenment.  Immerse"
	echo "yourself back in the system that you now know to be"
	echo "incomplete. Unfinished. Farcical."
	echo ""
	echo "a) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		accidental_option
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		accidental_option
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		accidental_option
	elif [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		accidental_option
	elif [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		accidental_option
	elif [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		accidental_option
	elif [[ "${choice}" == "h" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}h "
		accidental_option
	elif [[ "${choice}" == "i" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}i "
		accidental_option
	elif [[ "${choice}" == "j" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}j "
		accidental_option
	elif [[ "${choice}" == "k" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}k "
		accidental_option
	elif [[ "${choice}" == "l" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}l "
		accidental_option
	elif [[ "${choice}" == "m" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}m "
		accidental_option
	elif [[ "${choice}" == "n" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}n "
		accidental_option
	elif [[ "${choice}" == "o" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}o "
		accidental_option
	elif [[ "${choice}" == "p" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}p "
		accidental_option
	elif [[ "${choice}" == "q" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}q "
		accidental_option
	elif [[ "${choice}" == "r" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}r "
		accidental_option
	elif [[ "${choice}" == "s" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}s "
		accidental_option
	elif [[ "${choice}" == "t" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}t "
		accidental_option
	elif [[ "${choice}" == "u" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}u "
		accidental_option
	elif [[ "${choice}" == "v" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}v "
		accidental_option
	elif [[ "${choice}" == "w" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}w "
		accidental_option
	elif [[ "${choice}" == "x" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}x "
		accidental_option
	elif [[ "${choice}" == "y" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}y "
		accidental_option
	elif [[ "${choice}" == "z" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}z "
		accidental_option
	elif [[ "${choice}" == "0" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}0 "
		accidental_option
	elif [[ "${choice}" == "1" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}1 "
		accidental_option
	elif [[ "${choice}" == "2" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}2 "
		accidental_option
	elif [[ "${choice}" == "3" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}3 "
		accidental_option
	elif [[ "${choice}" == "4" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}4 "
		accidental_option
	elif [[ "${choice}" == "5" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}5 "
		accidental_option
	elif [[ "${choice}" == "6" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}6 "
		accidental_option
	elif [[ "${choice}" == "7" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}7 "
		accidental_option
	elif [[ "${choice}" == "8" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}8 "
		accidental_option
	elif [[ "${choice}" == "9" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}9 "
		accidental_option
	else
		the_void
	fi
}

accidental_option() {
     clear
	echo
	echo
	echo
	echo
	echo "I think you might have hit the wrong key accidentally."
	echo ""
	echo "Did you mean \"a\" ?"
	echo ""
	echo "a) Look around"
	echo "b) Gaze into the void"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		the_void
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		not_an_option
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		not_an_option
	elif [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		not_an_option
	elif [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		not_an_option
	elif [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		not_an_option
	elif [[ "${choice}" == "h" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}h "
		not_an_option
	elif [[ "${choice}" == "i" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}i "
		not_an_option
	elif [[ "${choice}" == "j" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}j "
		not_an_option
	elif [[ "${choice}" == "k" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}k "
		not_an_option
	elif [[ "${choice}" == "l" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}l "
		not_an_option
	elif [[ "${choice}" == "m" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}m "
		not_an_option
	elif [[ "${choice}" == "n" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}n "
		not_an_option
	elif [[ "${choice}" == "o" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}o "
		not_an_option
	elif [[ "${choice}" == "p" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}p "
		not_an_option
	elif [[ "${choice}" == "q" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}q "
		not_an_option
	elif [[ "${choice}" == "r" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}r "
		not_an_option
	elif [[ "${choice}" == "s" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}s "
		not_an_option
	elif [[ "${choice}" == "t" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}t "
		not_an_option
	elif [[ "${choice}" == "u" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}u "
		not_an_option
	elif [[ "${choice}" == "v" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}v "
		not_an_option
	elif [[ "${choice}" == "w" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}w "
		not_an_option
	elif [[ "${choice}" == "x" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}x "
		not_an_option
	elif [[ "${choice}" == "y" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}y "
		not_an_option
	elif [[ "${choice}" == "z" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}z "
		not_an_option
	elif [[ "${choice}" == "0" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}0 "
		not_a_letter
	elif [[ "${choice}" == "1" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}1 "
		not_a_letter
	elif [[ "${choice}" == "2" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}2 "
		not_a_letter
	elif [[ "${choice}" == "3" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}3 "
		not_a_letter
	elif [[ "${choice}" == "4" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}4 "
		not_a_letter
	elif [[ "${choice}" == "5" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}5 "
		not_a_letter
	elif [[ "${choice}" == "6" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}6 "
		not_a_letter
	elif [[ "${choice}" == "7" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}7 "
		not_a_letter
	elif [[ "${choice}" == "8" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}8 "
		not_a_letter
	elif [[ "${choice}" == "9" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}9 "
		not_a_letter
	else
		accidental_option
	fi
}

not_an_option() {
     clear
	echo
	echo
	echo
	echo
	echo "That's not even an option."
	echo ""
	echo "Stop it."
	echo ""
	echo "a) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		stop_it_stop_it
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		stop_it_stop_it
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		stop_it_stop_it
	elif [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		stop_it_stop_it
	elif [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		stop_it_stop_it
	elif [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		stop_it_stop_it
	elif [[ "${choice}" == "h" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}h "
		stop_it_stop_it
	elif [[ "${choice}" == "i" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}i "
		stop_it_stop_it
	elif [[ "${choice}" == "j" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}j "
		stop_it_stop_it
	elif [[ "${choice}" == "k" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}k "
		stop_it_stop_it
	elif [[ "${choice}" == "l" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}l "
		stop_it_stop_it
	elif [[ "${choice}" == "m" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}m "
		stop_it_stop_it
	elif [[ "${choice}" == "n" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}n "
		stop_it_stop_it
	elif [[ "${choice}" == "o" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}o "
		stop_it_stop_it
	elif [[ "${choice}" == "p" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}p "
		stop_it_stop_it
	elif [[ "${choice}" == "q" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}q "
		stop_it_stop_it
	elif [[ "${choice}" == "r" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}r "
		stop_it_stop_it
	elif [[ "${choice}" == "s" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}s "
		stop_it_stop_it
	elif [[ "${choice}" == "t" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}t "
		stop_it_stop_it
	elif [[ "${choice}" == "u" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}u "
		stop_it_stop_it
	elif [[ "${choice}" == "v" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}v "
		stop_it_stop_it
	elif [[ "${choice}" == "w" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}w "
		stop_it_stop_it
	elif [[ "${choice}" == "x" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}x "
		stop_it_stop_it
	elif [[ "${choice}" == "y" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}y "
		stop_it_stop_it
	elif [[ "${choice}" == "z" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}z "
		stop_it_stop_it
	elif [[ "${choice}" == "0" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}0 "
		not_a_letter
	elif [[ "${choice}" == "1" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}1 "
		not_a_letter
	elif [[ "${choice}" == "2" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}2 "
		not_a_letter
	elif [[ "${choice}" == "3" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}3 "
		not_a_letter
	elif [[ "${choice}" == "4" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}4 "
		not_a_letter
	elif [[ "${choice}" == "5" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}5 "
		not_a_letter
	elif [[ "${choice}" == "6" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}6 "
		not_a_letter
	elif [[ "${choice}" == "7" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}7 "
		not_a_letter
	elif [[ "${choice}" == "8" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}8 "
		not_a_letter
	elif [[ "${choice}" == "9" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}9 "
		not_a_letter
	else
		not_an_option
	fi
}

not_a_letter() {
     clear
	echo
	echo
	echo
	echo
	echo "That's not even a letter!"
	echo ""
	echo "All the options are letters!"
	echo ""
	echo "a) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	elif [[ "${choice}" == "b" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}b "
		not_an_option
	elif [[ "${choice}" == "c" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}c "
		not_an_option
	elif [[ "${choice}" == "d" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}d "
		not_an_option
	elif [[ "${choice}" == "e" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}e "
		not_an_option
	elif [[ "${choice}" == "f" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}f "
		not_an_option
	elif [[ "${choice}" == "g" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}g "
		not_an_option
	elif [[ "${choice}" == "h" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}h "
		not_an_option
	elif [[ "${choice}" == "i" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}i "
		not_an_option
	elif [[ "${choice}" == "j" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}j "
		not_an_option
	elif [[ "${choice}" == "k" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}k "
		not_an_option
	elif [[ "${choice}" == "l" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}l "
		not_an_option
	elif [[ "${choice}" == "m" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}m "
		not_an_option
	elif [[ "${choice}" == "n" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}n "
		not_an_option
	elif [[ "${choice}" == "o" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}o "
		not_an_option
	elif [[ "${choice}" == "p" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}p "
		not_an_option
	elif [[ "${choice}" == "q" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}q "
		not_an_option
	elif [[ "${choice}" == "r" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}r "
		not_an_option
	elif [[ "${choice}" == "s" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}s "
		not_an_option
	elif [[ "${choice}" == "t" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}t "
		not_an_option
	elif [[ "${choice}" == "u" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}u "
		not_an_option
	elif [[ "${choice}" == "v" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}v "
		not_an_option
	elif [[ "${choice}" == "w" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}w "
		not_an_option
	elif [[ "${choice}" == "x" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}x "
		not_an_option
	elif [[ "${choice}" == "y" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}y "
		not_an_option
	elif [[ "${choice}" == "z" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}z "
		not_an_option
	elif [[ "${choice}" == "0" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}0 "
		stop_it_stop_it
	elif [[ "${choice}" == "1" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}1 "
		stop_it_stop_it
	elif [[ "${choice}" == "2" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}2 "
		stop_it_stop_it
	elif [[ "${choice}" == "3" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}3 "
		stop_it_stop_it
	elif [[ "${choice}" == "4" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}4 "
		stop_it_stop_it
	elif [[ "${choice}" == "5" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}5 "
		stop_it_stop_it
	elif [[ "${choice}" == "6" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}6 "
		stop_it_stop_it
	elif [[ "${choice}" == "7" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}7 "
		stop_it_stop_it
	elif [[ "${choice}" == "8" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}8 "
		stop_it_stop_it
	elif [[ "${choice}" == "9" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}9 "
		stop_it_stop_it
	else
		not_a_letter
	fi
}

stop_it_stop_it() {
     clear
	echo
	echo
	echo
	echo
	echo "Stop it stop it stop it!"
	echo ""
	echo "a) Look around"
	echo
	echo

	echo -n "Choose: "
	read -r choice
	if [[ "${choice}" == "a" ]]
	then
		KEY_HISTORY="${KEY_HISTORY}a "
		examine_office
	else
		stop_it_stop_it
	fi
}

play "${@}"

# Local Variables:
# fill-column: 72
# tab-width: 8
# indent-tabs-mode: t
# sh-basic-offset: 8
# End:
