Adding death penalty

Adding a death penalty of 45% of XP loss when dying.

Also review a little some use of variable and the way to get the XP.

I'm also going to make another branch to see if I can come up with something with the accelerometer service for XP gain.