updated algy to figure out degrees and fixed messages being sent from server to the client