if (whichberry.offsetTop < whichplayer.offsetTop) {
            whichplayer.style.top = whichplayer.offsetTop - 40 + "px";
        } else if (whichberry.offsetTop > whichplayer.offsetTop) {
            whichplayer.style.top = whichplayer.offsetTop + 40 + "px";
        }