Working engine thread

- Engine is now able to control what is drawn to the screen
- Application now pauses and resumes the engine appropriately