YJ- fixed bugs in Tray.canMove()