Simple algorithm to solve 2048