Update CharacterController.php