Refactoring Go version of Tchoupi