sending correct class types to client, refactoring Actor into Entity