Implement PPU memory writes. Fixes #6