Implemented double-buffer, node creation, collision, and selection.