Refactor to gameengine dll