java implementation of the 2048 game