Terminal version of 2048 game written in perl