Starting to get the palette classes done.
More updates to PaletteState.