It is working for the first value
character reaches level 5, it can upgrade, but now that character is level 5, if i click button it keeps upgrading making it level 2, 3, 4, etc.
It should be level 10 to be able to upgrade the next level of that object.
I even put my values
5,8,1
0,0
0,0
0,0
0,0
10,16,2
i dont know if that is the correct way to do it.