implementation of the popular game 2048