Drag and drop to swap shapes. You can only swap neighboring shapes. Every match refills your time, but you'll get less time as your score increases.