So I have read through the site you sent me and Im trying to add it into my game which is using Libgdx and Tiled. I was wondering if you guys could take a look at what Ive got so far and say what you think? 
private Array<Cell> openList = new Array<Cell>();
private Array<Cell> closedList = new Array<Cell>();
private Vector2 startingPoint, endingPoint, currentPoint;
private int g_movementCost;
private int h_heuristic;
private int f;
private float tileWidth = 32;
private float tileHeight = 32;
private TiledMapTileLayer layer;
private Cell currentCell;
private Cell tempCell;
public void createPath(float startX, float startY, float endX, float endY){
startingPoint.set(startX / tileWidth, startY / tileHeight);
endingPoint.set(endX / tileWidth, endY / tileHeight);
currentCell = layer.getCell((int) startingPoint.x, (int) startingPoint.y);
currentPoint.set(startingPoint.x, startingPoint.y);
openList.add(currentCell);
//Top-Left
if((tempCell = layer.getCell((int) currentPoint.x - 1, (int) currentPoint.y + 1)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Top
if((tempCell = layer.getCell((int) currentPoint.x, (int) currentPoint.y + 1)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Top-Right
if((tempCell = layer.getCell((int) currentPoint.x + 1, (int) currentPoint.y + 1)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Left
if((tempCell = layer.getCell((int) currentPoint.x - 1, (int) currentPoint.y)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Right
if((tempCell = layer.getCell((int) currentPoint.x + 1, (int) currentPoint.y)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Bottom-Left
if((tempCell = layer.getCell((int) currentPoint.x - 1, (int) currentPoint.y - 1)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Bottom
if((tempCell = layer.getCell((int) currentPoint.x, (int) currentPoint.y - 1)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
//Bottom-Right
if((tempCell = layer.getCell((int) currentPoint.x + 1, (int) currentPoint.y - 1)) != null){
if(!isCellSolid(tempCell)){
openList.add(tempCell);
}
}
}
Im also wondering if the next thing I should do now is to make it not add the same cell again in the openList by checking if its in the closedList, but Im not quite sure on how to do this
Do I need to loop through the closedList everytime I try to add something in the openList? And also, theres no โtempCell.getX or .getY()โ which can give me the coordinate, but I guess it could be possible to make another Vector2 Array that could hold that infomation? 