Added trigger functionality in engine to replace update and draw