Castle generator tool in OpenGL