class Grid

  def initialize(window, user, mapfile, tileset, programs=nil)
    @window, @user = window, user
    @map = Map.new(window, mapfile, tileset)
  end

  def draw
    @map.draw
  end

  def width
    @map.width
  end

  def height
    @map.height
  end

  def solid_blocks
    @map.solid_blocks
  end

  def lines
    @map.lines
  end

end

class Grid

  def initialize(window, user, mapfile, tileset, program_file=nil)
    @window, @user = window, user
    @map = Map.new(window, mapfile, tileset)
  end

  def draw
    @map.draw
  end

  def width
    @map.width
  end

  def height
    @map.height
  end

  def solid_blocks
    @map.solid_blocks
  end

  def lines
    @map.lines
  end

end

Rename programs parameter to 'program_file'
Rename programs parameter to 'program_file'
