Based on qqwing, modified for Wordoku