Initial knight code.