refactor chip8 into separate file
extract basic blocks