Working 8neighborhood behavior, and some bug fixes.