Create main.py

This is the source for Gehirn itself. I commented it best I could, but it's still pretty messy. Sorry about that.