Added logic for calculation of words being played (still some issues, but mostly working)