moved logic to WordGrid