     direciton: direction
     location:  location
     color:     color
+    serial:    (bugs.next_serial += 1)
 
 random_location = (bugs) ->
   x = random_num 59

  grid

starting_bugs = ->
  bugs = grid: empty_grid()

  add_bug bugs, 'fly_trap1', 'rgb(0,0,255)', create_fly_trap
  add_bug bugs, 'fly_trap2', 'rgb(0,0,255)', create_fly_trap
  add_bug bugs, 'fly_trap3', 'rgb(0,0,255)', create_fly_trap

  add_bug bugs, 'moth1', 'rgb(255,0,0)', create_moth
  add_bug bugs, 'moth2', 'rgb(255,0,0)', create_moth
  add_bug bugs, 'moth3', 'rgb(255,0,0)', create_moth

  bugs

add_bug = (bugs, name, color, move) ->
  location  = random_location bugs
  direction = random_num 3

  bugs.grid[location.x][location.y] =
    move:      move

  console.log 'end iteration'

move_bug = (bugs, bug) ->
  x = bug.location.x
  y = bug.location.y

  bug.location.x = x + 1
  bug.location.y = y + 1

render_game = (canvas, bugs) ->
  canvas.clear()
