In the endgame , however , the king may comes out of hiding to play an active role as an offensive piece as well as helping in the promotion of their remaining pawns . In the endgame , however , the king emerges to play an active role as an offensive piece as well as assisting in the promotion of their remaining pawns .