Implementation of the wordy game