implemented turret functionality