Phase-Functioned Neural Networks for Character Control