Chessa::Sharp: Fix loops and import functions.