CHIP 8 Emulator in Scala