Words with Letters subroutine