solve middle game drag piece bug