private void refresh() {
        Competition.getInstance().setNextCodeRedMatch(CURRENT_MATCH);
        Match match = schedule.get(CURRENT_MATCH);
        boolean red = match.getRedStation1() == 2771 || match.getRedStation2() == 2771 || match.getRedStation3() == 2771;
        nextMatchNumber.setText(String.valueOf(match.getMatchNumber()));
        nextMatchInfo.setText("Alliance: " + (red ? "Red Alliance" : "Blue Alliance") + "          Battery: " + match.getBattery().getBatteryLetter() + "          Time: " + match.getMatchTime());
        matchSchedulePanel.updateCurrentMatch(match.getMatchNumber() - 1);
        holder.setBackground(red ? Color.RED : Color.BLUE);
        nextMatchPanel.setBackground(red ? Color.RED : Color.BLUE);
        nextMatchInfo.setBackground(red ? Color.RED : Color.BLUE);
        batteryPanel.refresh();
    }