update make_knight algorithm