Tech tree implementation

almost a complete implementation of tech tree restrictions