Refactored poker demo console for gateway and echo mode.