Refactored game and word list code for brevity.