private void paintPiecesInHand(Graphics g, Player player) {
        int player_type = player instanceof AheadPlayer ? Player.AHEAD : Player.BEHIND;
        Point offset = player_type == Player.AHEAD ? AHEAD_OFFSET : BEHIND_OFFSET;
        int count_of[] = new int[7];
        for(Piece p : player.getPiecesInHand()) {
            int x = 0, y = 0;
            if(p.getTypeOfPiece() == Piece.FU) {
                count_of[Piece.FU - 1]++;
            }
            for(int i = 2; i < 8; i+=2 ) {
                if(p.getTypeOfPiece() == i) {
                    x = count_of[i-1] * 5;
                    y = 25 * i;
                    count_of[i-1]++;
                }
                if(p.getTypeOfPiece() == i+1) {
                    x = 60 + count_of[i] * 5;
                    y = 25 * i;
                    count_of[i]++;
                }
            }
            offShogi_Img.drawImage(
                    Pieces_Img[player_type][p.getTypeOfPiece() - 1],
                    offset.x + x,
                    offset.y + y,
                    45, 48, this
            );
        }
        for(int count = 1; count < count_of[Piece.FU -1]; count++) {
            int width = (count_of[Piece.FU-1] < 8)?15:5;
            offShogi_Img.drawImage(
                    Pieces_Img[player_type][Piece.FU - 1],
                    offset.x + count * width,
                    offset.y,
                    45, 48, this
            );
        }
    }