In the top field you can move the blocks left or right. Let them drop down into the field so that the right colours touch. When three or more blocks of the same colour touch they will vanish, opening up space in the field again. As you progress you will get less and less time to do this.
Use the arrow keys or A/D to move the blocks left or right. Use the space bar to drop them.