how to write games in BASIC