print_message function to handle received messages
refactor message_router
start_router function passing the function reference
pass PrintFunction as spawn parameter
define SERVER constant