extern unsigned char extends_gained;