Lightweight C++ game engine, utilizing palettes