fixed isADraw bug