Improve function ProdigalKnight