Reformat codes : visibility and understanding.
Add random drawing and a check on the answer given by the user.