Added the complete main program code from my own personal chessgame.