Began implementing palette code generation