added checking code to pawns shelter