Create newcharRefactor.php

a start to refactoring newchar.php