There's a surprisingly effective approach to this game, which is to alternate between up and right (or, for that matter, down and left) and then hit left when you've run out of moves before switching to up right up right up right etc. again. With this sequence you tend to be able to get to 512 with no trouble, although once you are that far along a bit more care is needed.