Made leveling up function properly

For some reason the variable level inside the creature structure was not used in its intended way.