Changed implementation of integer to string conversion and memory management.
Merge branch 'master' into mtg-life-points

Conflicts:
	src/counter.c