Toolkit for building game engines