Add gem creation to obstacles class