Fixed small bug

Moved Engine so that null pointer errors would happen less often