Split the code into three clases:
-Dictionary which can find valid words on the grid
-Grid which manages the letter tiles
-Player which keeps track of a player's score
Also make these classes compatible with all major brawser environments as well as with Node.js