Gameboy Emulator in nim