Set phases to correct order to prevent falling through terrain