This is called the tetris effect. I've had it with, you guessed it, tetris. Whenever I get a bout of addiction and play tetris for an hour at a time I get up from the computer and just start seeing the stuff around me start fitting together in an interlocking fashion.
Happened with 2048 as well, I vividly remember being stopped at a red light and feeling the car in front of me fusing the one ahead to make a bigger-numbered car. Very weird.
Happens when coding as well, in fact it is happening right now as I type this! I'm having this very strong urge to wrap all "key" words in this post [like so], in ocaml documentation syntax.
(* Brains are weird! *)