Moved some of the gravistroids stuff out of the engine code