Refactored code, added world gen. Currently broken.