simple java chip8 emulation