Update main.js

star appears when gaining life