Use arrow keys or swipe the screen to move all the boxes to match their own colors. The box which hit the blocks cannot continue moving while others still do. You have to use the blocks to arrange all the boxes then move theme to correct positions.
You have 3 steps backward in case of wrong move, use it wisely.
This game has the Level Editor that let you create your own level and share it to others.
Good luck, have fun!