Started rewriting game loop
Rewrote game loop.
added ui.py and