public void death() { ScoreList.add(distance); if (ScoreList.getList()[0] == distance) { onNewHighScore(); } dead = true; }