Retro STAR TREK game in Javascript