Completed code (v1) for sending and receiving transform and movement input