Added GameObject.resolveCollision so each gameobject can
resolve their own collisions