Fix major punnet square bug. Fix inventory bugs.

Move base stuff to a parent TE class.