moved gun creation to a separate file