A 2048 implementation in python