Java Version of 2048 game