fixed a bug with nil cells in neighbors
added capybara