moved the gun class to the player