fill grid with the input number

Signed-off-by: Guillaume George <guillaume.george@etu.utc.fr>