Fixed bug in Research Tree. Some research lines ere placed incorrectly

Plus fixed few other bugs