Generates an interactive game of 2048 in the console.
Arguments
size
An integer giving the grid's dimensions.
Defaults to 4, which generates a 4-by-4 grid.
dynamic
If dynamic is TRUE, commands can be input without pressing
enter, creating a more seamless game experience.
Note that dynamic commands currently only work in RStudio.