It takes more than the time you have for the energy to get to the end after moving the piece you need. You can get more by destroying bugs, just place a glitch where the closest two bugs intersect and it'll give you plenty more time. I'd suggest doing this first before they cross paths for the first time, then going back to move the piece.