Updated CommandFactory service to check receiver is instanceof Character