Added code to send coordinates to server