A text-based implementation of 2048 with an AI