small cleanup changes
Refactored isNeighbors.
memory leaks.
Basic menu.