public Color getColor(int index) {
        if (index == lastExchangeA || index == lastExchangeB) {
            return Color.RED;
        } else if (index == lastCompareA || index == lastCompareB) {
            return Color.GREEN;
        } else if (index == lastPlace) {
            return Color.BLUE;
        } else {
            return Color.BLACK;
        }
    }