A path is not valid if a position is repeated