private void calculateG(AStarNode checkNode) {
		int parentX = checkNode.getParent().getxCoord();
		int parentY = checkNode.getParent().getyCoord();
		int xCoord = checkNode.getxCoord();
		int yCoord = checkNode.getyCoord();

		if ((yCoord - 1 == parentY && xCoord == parentX)
				|| (yCoord + 1 == parentY && xCoord == parentX)
				|| (xCoord - 1 == parentX && yCoord == parentY)
				|| (xCoord + 1 == parentX && yCoord == parentY)) {
			checkNode.setG(10);
		} else {
			checkNode.setG(14);
		}
	}