Remove a redundant condition in connected_moves()