Storing and updating positions of gameObjects, collision detection