Click on the button to use either a sword or your staff. Using the Staff requires 30 mana, and if it runs out, you are stuck with the sword. Kill the enemy wizard to win. Beware of his magic.