Create a new Godot Project
Rename the Node2D to Main
Go to Project -> Project Settings
Set Viewport Height and Width to 1000
Add another Node2D as a child
Add a ColorRect Node as a child of Snake
Change the color to Green
Add another ColorRect node as child
Set up the required variables
Note that grid size refers to the size of each cell of the grid
Create a function to move the snake
The snake will move by one cell
In the direction which it is facing
Set up the input to move the snake
Note that the snake cannot reverse
If going up, snake cannot turn into itself
Now create ticking movement
The snake should move one cell
Test the game - the snake should move and be controllable.