edited befunge version for style consistency