Redid alot of engine stuff

Still not stable.