Implementing gameboy emulator from codeslinger tutorial