Implemented tech tree functionality