I edited the coding to make you start with 5 vertices. If you click add side it will add 5 vertices. If you click delete side it will get rid of 10 vertices.
nice job to vatsalnewar for the original coding and sprites