Added indexing to gameobjects