Added a (rather complicated) game loop system. Will work on making a
more simple version.