2048 in scala