I think the picture is rather self-explanatory.
I haven't thought about the details, this is just an idea I came up with, when I saw my companion cube plush.
The fight would probably be too easy, so I thought that there should be a delay for when you can use the dispenser and/or the
companion cube uses some kind of shield to protect its heart from time to time.