rename solution to goal; added event.preventDefault