Implementation of Queen moves generator.