Drag the cube to the empty slot to win. Don't touch the barriers. If you drag your mouse too fast, you'll lose your grip.