To solve the scramble with friends game