Attempting a nes emulator