adds character generator and simple attack function