refactored client into Host and Player views