Fixed bug
Added adjacent_gates method