Too attack you click attack and to heal you press potion. If your hp is less than 1 you lose and if your enemy's hp is less than 1 you win.
I got the sprites from this link http://wiki.tppc.info/Zygarde and this link https://jackjackcooper.deviantart.com/art/Lycanroc-midnight-gif-665819572. I got the backdrops from this link http://justdance.wikia.com/wiki/File:Pokemon_x_and_y_wifi_battle_background_by_phoenixoflight92-d841b5t.jpg. I got the music from another project. https://scratch.mit.edu/projects/59768866/