The red and yellow square have to touch the green square. The first level can be confusing. Try to restart(Escape) the level and just go up straight.