Edited the level up function so that it can handle multiple levels being gained at once (just in case)