refactoring: passes a matrix of letters instead of an array of letters
server: injects the dimension attribute instead of duplicating it on the server