new functionality added

add new restriction that a entry cannot be adjacent to the exit, vice
versa