Update solargame.js

tons of optimization shit. he wants us to declare local variables at the beginning of functions