Added a merge helper function to 2048.py