fixed IndexError to the 'createGlider' method