Improve logic implementation of shooting bullet