added IndexError to the 'createGlider' method