working on player shooting function