<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_squares(self, player=None):
 """squares that belong to a player"""

        if player:
            return [k for k, v in enumerate(self.squares) if v == player]
        else:
            return self.squares