moved some functions out of main and into shape.js
added in ghost, moved block size to main so it's global