added more GUI logic and started on the engine