Castle game character engine