added zappa-server test example and refactored rules and player server code