Credits to student b01902112 from National Taiwan University for this insane version of 2048