def end_game(self, won=False):
    'End the game; if won is True, the player won;\n        if won is False, the player lost'
    self.game_over = True
    self.put()
    points = self.points = (500 - ((self.attempts_made - self.matches_found) * 10))
    score = Score(user=self.user, time_completed=str(datetime.now()), won=won, attempts_made=self.attempts_made, game_deck=self.deck, matches_found=self.matches_found, points=points)
    score.put()
End the game; if won is True, the player won;
if won is False, the player lost
def end_game(self, won=False):
    'End the game; if won is True, the player won;\n        if won is False, the player lost'
    self.game_over = True
    self.put()
    points = self.points = (500 - ((self.attempts_made - self.matches_found) * 10))
    score = Score(user=self.user, time_completed=str(datetime.now()), won=won, attempts_made=self.attempts_made, game_deck=self.deck, matches_found=self.matches_found, points=points)
    score.put()