Fixed the main bug

Fixed the bug that made the player unable to shoot.