Lots of correction

Game is almost fully playable unless there are issues with the research
tree, which i have not tested.