fix bug in function moveRight that [2,2,0,0] value doesn't stack