Also, can you clarify a bit? For example, is the action supposed to create the grid and are the dimensions of the square(s) always the same? What does "move it to another place" actually mean? Always to the same place or may the distance and position vary?
Are there other important informations one has to know in order to create an action or possibly some different approaches?