added functions for create player and character routes