Parts can only be moved when at least one other part is adjacent to them. A Parts can thus be moved vertically if at least one part is adjacent either above or below it. And it can be moved horizontally if at least one part is adjacent either left or right of it.