Neon Fence

Fence in all the requested colors (top). Drag to build a fence around the squares and try to keep all indicated colors inside it.