2048 game strategies in JavaScript