class Hit(): display=False def __init__(self,char): if char=='X': game.end