Made an check for valid coords in the enrgy network.