changed how blocks are declared.

Changed functions in character, to use the this-> notation instead.