public int updateHiScore() {
        for (int i = 0; i < hiScores.length; i++) {
            HiScore s = hiScores[i];
            if((s.score < score) || 
              ((s.score == score) && (s.lines >= lines))) {
                //Stack the HiScore
                switch (i) {
                case 0:
                    s = hiScores[1];
                    hiScores[1] = hiScores[0];
                    hiScores[2] = s;
                    s = new HiScore();
                    hiScores[0] = s;
                    break;
                case 1:
                    hiScores[2] = s;
                    s = new HiScore();
                    hiScores[1] = s;
                    break;
                };
                s.score = score;
                s.lines = lines;
                return i;
            } 
        }
        return -1;
    }