The problem is that you have not unprojected the touch points.
you must unproject the touch points as
touchpoint = new Vector3();
camera.unproject(touchpoint.set(Gdx.input.getX(i),Gdx.input.getY(i),0);
touchedX = touchpoint.x;
touchedY = touchpoint.y;
also i would recommend you to use inputprocessor instead of getting X & Y values from functions Gdx.input.getX(i), Gdx.input.getY(i) as Inputprocesor gives you much more control over multitouch events and you dont have to write the loop for getting touch points it gives you touch pointer as well in its function