CODE: import math import random import pygame import random import tkinter as tk from tkinter import messagebox width = 500 height = 500 cols = 25 rows = 20 class cube():     rows = 20     w = 500     def __init__(self, start, dirnx=1, dirny=0, color=(255,0,0)):         self.pos = start         self.dirnx = dirnx         self.dirny = dirny # "L", "R", "U", "D"         self.color = color     def move(self, dirnx, dirny):         self.dirnx = dirnx         self.dirny = dirny         self.pos  = (self.pos[0] + self.dirnx, self.pos[1] + self.dirny)                  def draw(self, surface, eyes=False):         dis = self.w // self.rows         i = self.pos[0]         j = self.pos[1]     ...