Question: how many valence electrons do atoms want?
Answer: Row 3 elements on the left lose electrons to gain a full outer shell, elements on the right usually gain electrons to have 8 electrons in their outer shell. The basis of the octet rule is that atoms 'want' a full outer shell of electrons, i.e. they are most stable with a full outer shell.