Fix for neighbors function - don't include outside the maze as a neighbor (for entrance & exit)