You have to basically just kill as many monsters as you can. Use the arrow keys to move around and use the space key to attack.
The collision code for the enemies is still kind of glitchy, but don't worry if it starts jittering, it's just the code. Thanks to Goatboss645 for the idea and the sword.