Inspired by the classic BASIC game.