fixed the logic of 2048