added checkGravity.js function
Merge branch 'weightGame' of https://github.com/HacktheUniverse/spaceploration into weightGame