xy control and udp handling complete