CHIP-8 emulator in Ruby