change algorithm for getPossiblePawns