fix graphics bug
add width to viewport
dont start websocket unless served by server
add aviod-game