A solution generator for scramble games