added in a controller for the word game