Making shooting work correctly