some bug fixes to the pawn isLeagalMove method