gameboy emulator in scala