refactored box->actor and ball->token
refactoring actor code