This is a implement ion of the 2048 game with a bot function.