added level up functionality