Sometimes I had an idea like with the second level where there is one way you can move it to move left but then you have to move the grid back so you can go right. Others I just used trial and error.