Added a new Table Class and reworked main function

Since the old Table was very buggy and unstable, I created a complete
new one. The new one is much simpler and needs a lot more hardcoding but
should work a lot better.
I left the old one still in there if we need some stuff from there.

I also reworked the whole main function and cleaned it up. It now only
has one window where everything takes place and all the debug texts are
gone.