In each "room", you will have to understand the path of the Boss in order to change and head into the electrical barrier. The path will change when you use the bomb-slot. However, this will only be available while the Boss' aura is green. You need to drop bombs in front of him until he is green, and get to the bomb slot as fast as possible. Continue this in each room until the Boss is dead. You will need to be fast in the third room because of the fact that there are three bomb-slots.