Checked for case where two pieces are in edges