added shoot function to server side