Standalone the source code from https://github.com/yangboz/godpaper/tree/master/TheRealBishop