fixed connection management
updated client game loop
heroku ready