Update main.js
Update main.js

Got rid of the bug where moving from one shape to another doesn't draw a new gradient. Created a currentShape object to monitor the state of which shape the user is hovering over. When the state changes, we redraw and draw the gradient over the currentShape.
jmluceno/hexes,jmluceno/hexes