Improves the 2048 implementation

The patch is from bla, from smashthestack.