Click one of the 3 buttons at the bottom of the screen. They all say what they do on them. Mana increases every time you do something that doesn't use it. You can see your mana in the top left below "Player Health". If your health goes below 1, the game is over. When the enemy health goes below 1, you win.
Thanks to thehappytroll for creating the engine this is based off of.