updated main

added declaration to neighbor list and user interaction