Fixed bugs in 2048 and added more unit testing