Completed numberFromCoordinates function in server.c