Yes, you're allowed to reuse your engine. As long as the engine is written in Pascal and most of the content is made especially for this contest you're allowed to use a premade engine.