game 2048 logic upgrade: check valid moves