fixed palette
Optimized pattern table access and vflip
implemented sprite drawing
Synchronized cpu and ppu.
Started working on MMC1.