daemonize
game thread task