   next_iteration bugs
   render_game canvas, bugs
 
-  if turns < 10
-    setTimeout((-> next_turn bugs, canvas, turns + 1), 100)
+  if turns < 1000
+    setTimeout((-> next_turn bugs, canvas, turns + 1), 50)
 
 empty_grid = ->
   grid = []


create_moth =
  (info) ->
    if info.front == 'OTHER'
      'EAT'
    else if info.front == 'EMPTY'
      'WALK_FORWARD'
    else
      'TURN_LEFT'

shuffle_array = (array) ->
  i = array.length

      'rgb(0,0,255)'
    ]

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

  for i in [0..10]
    add_bug bugs, 'moth1', create_moth

  for i in [0..10]
    add_bug bugs, 'moth2', create_moth

  bugs

