Update main.js

Remove 8ball array hard-coded length.