scramble game in c