fix class type error
merge Nagata code(UI, touchJudge, LineTracer and so on)