added check function for pawns