added currentcharacter to the controller class