Fixed a bug where the player could shoot multiple times