function of pawn and knight updated