class Area:

    def __init__(self, posx, posy, background, checker=None):
        self.posx = posx
        self.posy = posy
        self.checker = checker
        self.background = background

    def bg_color(self):
        if self.background == 'W':
            return 1
        else:
            return 2

e3151d5e9e3a053f11a8bcb058e440d78c387bcb
<mask token>

class Area:
    <mask token>
    <mask token>

class Area:

    def __init__(self, posx, posy, background, checker=None):
        self.posx = posx
        self.posy = posy
        self.checker = checker
        self.background = background
    <mask token>

class Area:

    def __init__(self, posx, posy, background, checker=None):
        self.posx = posx
        self.posy = posy
        self.checker = checker
        self.background = background

    def bg_color(self):
        if self.background == 'W':
            return 1
        else:
            return 2
