Fixed healing not working because of shuffling

Shuffled variables not being updated resulted in healing not working.
Moved them to proper location