Parse incoming JSON and send player commands to appropriate method.