added shoot function to client side and made some modifications to rotate
Properly close ws when logout
Change size of canvas fitting to current window size