public Chat(int maxrow, int x, int y, TrueTypeFont font, Player player) {
        this.inputplayer = player;
        this.font = font;
        this.maxrow = maxrow;
        this.lines = new String[maxrow];
        this.colors = new Color[maxrow];
        this.x = x;
        this.y = y;
        for(int i=0; i<maxrow; i++) {
            this.lines[i] = "";
            this.colors[i] = Color.white;
        }
    }