implemented isValidRoad. also cleanup