Added getters and setters to the character class.