Rearranged code for a top-down presentation of functions.

In order to rearrange the order of functions, Clojure needs to have
some functions predeclared (via `declare`).

Also, removed the unused "neighbor" functions.
Changed user-entered positions to 1-9.