add exit message, and try to find palette in rom from file