iOS version of https://github.com/gabrielecirulli/2048