implemented a pawn class