First attempt at writing a NES emulator