Fix a reset reordering issue (Thanks git bisect!)
Refactor palette management in GG mode