The game asset is the clear copyright violation, even if the code might be considered a "clean reimplementation" (but this is obviously a derivative work, so definitely not clean).