piece movement bug fix