public void botMove(Player p) {
        int[] best = new int[4];
        for(int i = 0; i < best.length; i++)
            best[i] = Utils.distance(getX()+Utils.dirToSumX(i),getY()+Utils.dirToSumY(i),p.getX(),p.getY());
        int min = 99999999;
        int dir = -1;
        for(int i = 0; i < best.length; i++)
            if(best[i] < min && Map.canMove(getX()+Utils.dirToSumX(i),getY()+Utils.dirToSumY(i))) {
                min = best[i];
                dir = i;
            }
        moveTo(getX()+Utils.dirToSumX(dir),getY()+Utils.dirToSumY(dir));
    }