Added errors for invalid probabilities and coordinates in drawing