chip8 emulator using SDL and C