Santa helper Lego nxt

Santa has to deliver many colored balls this year and wants to arrange them in storages according to their color. This robot takes balls if the same color and moves above the storages on a specially constructed bridge until it finds the appropriate storage where it puts the balls.