     color:     color
     serial:    (bugs.next_serial += 1)
 
+  unless bugs.stats[name]?
+    bugs.stats[name] = [{iteration: 0, count: 0, name: name}]
+    bugs.names.push name
+
+  bugs.stats[name][0].count += 1
+
 random_location = (bugs) ->
   x = random_num 59
   y = random_num 39

    grid:        empty_grid()
    colors:      {}
    next_serial: 0
    next_color:  ['black', 'yellow', 'blue', 'grey', 'pink', 'green', 'red']

  for i in [0..10]
    add_bug bugs, 'fly_trap', create_fly_trap


  for bug in bug_list
    move_bug bugs, bug

  bugs.names.map (name) ->
    count = bug_list.reduce(
      ((sum, bug) -> if bug.name == name then sum + 1 else sum), 0)
    bugs.stats[name].push
      iteration: bugs.turns
      count:     count
      name:      name

info_at_location = (grid, bug, x, y) ->
  info = if x < 0 or y < 0 or x == 59 or y == 39
