Implementation of the game wordy