Clarify sample
Extract method Cell#update_if
Formatting
Extract method Cell#occupied?
Remove unrequired reference to @lines
Extract method Line#positions
Add ai_spec.rb