I\'m working on an assignment, where the user can draw inside a n*n grid. The tasks are as following: