fixed minor error; returns tiles.terminal now, not both the terminals and non-terminals