Add some log sub for D.O.T game, refactor code