making it impossible for the position to be selected twice in a row