Ruby program inspired by Scrabble