Click on the arrows which are shown if you hover over a selected brick. The brick will move one unit in the direction. Although on mobile there are no arrows you have to do exactly the same. Just click on the start or end of a brick and the brick will move in the desired direction.
Goal is to get the red brick on to the right side with as little moves as possible.