public void checkForDing() { if (statistics.currXp >= statistics.xpCap) { int xpOverFlow = statistics.currXp - statistics.xpCap; statistics.level += 1; statistics.UpdateXpCap(); statistics.currXp = xpOverFlow; checkForDing(); } UpdateUI(); }