started build of engine to control everything. Also started on major refactor