CHIP-8 emulator in Java