Fixed accidental global scoping and issues with initial default function
Merge branch 'master' of https://github.com/dmazin/asteroid-tycoon