added a function to shoot for players