Need help for my arduino project PLEASE ANYONE!

If you can use one, then yes, it is easier and it will work with a 5x5 grid.