Added main control loop parts.
Merge branch 'master' of https://github.com/ErroneousPromulgation/Project2