adding levels and fixing leveling up