How many ways are there to fill in a $2 \times 2$ square grid with the numbers $1, 2, 3,$ and $4$ such that the numbers in any two grid squares that share an edge have an absolute difference of at most $2$?

Let's think step by step and output the final answer within \boxed{}.
user