made sure a pawn near the end game could not go past the end point