Rewrote 2048 using objects and classes