implemented Level system. Still has problems, especially when there are no more levels.