Magnetic Interactions In Transition Metal Dichalcogenides