The instructions are in the game. If the boss zaps you he will gain health. to beat him just touch him while he's darkened.
This game took a very long time to make and was hard for me to program. Credit to Zeyphr and LRGonzales for the Music. Also I let ZeSpinyOlive test this game before it was shared, and I found out that this game is hard. Sorry if you can't beat it. :/ Yes it is glitchy.