You can (probably) find an idea in one of these:
Mark a solution if you have got what you wanted
Edit: if you are going to do squ1d game, you can use this guide: