private static ArrayList<Position> getPossiblePositions(int index, ArrayList<ArrayList<Piece>> pieces)
	{
		ArrayList<Position> pos = new ArrayList<Position>();
		for(int i = 0; i < 8; i++)
		{
			Piece cPiece = pieces.get(index).get(i);
			if(cPiece != null)
			{
				for(int x = 0; x <= placementGrid.getHeight()-cPiece.getHeight();x++)
				{
					for(int y = 0; y <= placementGrid.getWidth()-cPiece.getWidth(); y++)
					{
						if(canPut(cPiece, x, y))
						{
							pos.add(new Position(x,y,i));
						}
					}
				}
			}
		}
		return pos;
	}