fix duplicate pieces and turn = 0