added __repr__ and __str__ methods to the character class