Added some state code for the Character class