import pygame from Constants import SQUARE_SIZE, GREEN, RIGHT, LEFT, UP, DOWN import Board import Agent class Game: def __init__(self, win): self._init() self.win = win def _init(self): self.selected = None self.board = Board self.agent = Agent(0, 0) self.turn = GREEN self.valid_moves = {} def update(self): self.board.draw(self.win) self.draw_valid_moves(self.valid_moves) pygame.display.update() def move(self, destination): if destination == UP && self.agent.ifNotOnEdge(UP): self.agent.row -= 1