Refactored code.

1. Modified random words.
2. Modified the visualization.
3. Made the project compatible with IDEA and Eclipse.