In the exercise you need to add to the compile.
compile = ["swiftc", "-o", "main", "main.swift", "game.swift"]
here is a screengrab of what it should look like when you have edited the .replit compile function
enter image description here
Really confusing exercise....