move function now returns correct result for pawn captures